{"swagger":"2.0","info":{"description":"Local API of the service-order Microservice (Service Order Inventory) for basic validation.","version":"1.0.0","title":"API for basic validation","x-logo":{"backgroundColor":"#FFFFFF"}},"host":"service-order-app","basePath":"/service-order-rs","tags":{"name":"validation-service"},"schemes":["http"],"paths":{"/service-order/local/v1/validations/validateRulesOnServiceOrderItems/{businessId}":{"post":{"tags":{"name":"validation-service"},"summary":"* Check defined validation rules against service order items","description":"* Check defined validation rules against service order items","operationId":"validateRulesOnServiceOrderItems","produces":["application/json"],"parameters":{"name":"businessId","in":"path","required":true,"type":"integer","format":"int64","description":"business id of service order which items should be validated"},"responses":{"200":{"description":"successful operation, RuleValidationResultDto","schema":{"$ref":"#/definitions/RuleValidationResultDto"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/RestException"}}}}},"/service-order/local/v1/validations/validateSoAttributes/{businessId}":{"post":{"tags":{"name":"validation-service"},"summary":"* Check defined validation rules against service order attributes","description":"business id of service order which attributes should be validated","operationId":"validateSoAttributes","produces":["application/json"],"parameters":{"name":"businessId"},"in":"path","required":true,"type":"integer","format":"int64","responses":{"200":{"description":"successful operation, RuleValidationResultDto","schema":{"$ref":"#/definitions/RuleValidationResultDto"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/RestException"}}}}}},"definitions":{"RestException":{"type":"object","properties":{"code":{"type":"string"},"codeClass":{"type":"string"},"errorNumber":{"type":"string"},"message":{"type":"string"},"parameters":{"type":"array","items":{"type":"object"}},"namedParameters":{"type":"object","additionalProperties":{"type":"object"}}}},"RuleValidationResultDto":{"type":"object","properties":{"serviceCharErrors":{"type":"array","description":"List of all validation errors on service characteristics","items":{"$ref":"#/definitions/ServiceCharacteristicErrorDto"}},"status":{"type":"string","enum":["PASSED","FAILED_CHARACTERISTICS","FAILED_NON_UNIQUE_SERVICE","FAILED_NO_ITEMS","FAILED_UNKNOWN_SERVICES","UNSUPPORTED_SERVICE_ORDER_ITEM_BASE_TYPE","UNSUPPORTED_SERVICE_ORDER_ITEM_TYPE","FAILED_UNKNOWN_SERVICES_TYPE","FAILED_WRONG_SERVICE_ORDER_EXTERNAL_ID","FAILED_WRONG_SERVICE_ORDER_RELATIONSHIP_TYPE","FAILED_MISSING_VALUE_OF_FIELD_IN_SERVICE_ORDER_RELATIONSHIP","FAILED_ORDER_RELATIONSHIPS_MORE_THAN_ONE","FAILED_SERVICE_RELATIONSHIPS"]},"validationErrorExpected":{"type":"string","description":"Field is filled when there was some validation error on some field except characteristics (those are handled separately) Content depends on validation error type, but generally should contain value/values which was expected for some field which broke validation"},"validationErrorReference":{"type":"string","description":"Field is filled when there was some validation error on some field except characteristics (those are handled separately) Content depends on validation error type, but generally should contain some id of corrupted element/wrong value"}}},"ServiceCharacteristicErrorDto":{"type":"object","properties":{"characteristicDefinitionName":{"type":"string","description":"Optional, characteristic definition name, filled only when error is not unsupported char"},"characteristicDefinitionRegex":{"type":"string","description":"Optional, characteristic definition regexp, filled only when error is not unsupported char"},"characteristicDefinitionType":{"type":"string","description":"Optional, characteristic definition type, filled only when error is not unsupported char"},"characteristicErrorType":{"type":"string","enum":["UNSUPPORTED_CHARACTERISTIC","MISSING_MANDATORY_CHARACTERISTIC","WRONG_CHARACTERISTIC_DATA_TYPE","FAILED_CHARACTERISTIC_REGEX_VALIDATION","DUPLICATED_CHARACTERISTIC"]},"characteristicName":{"type":"string","description":"name of failed characteristic"},"failedCharacteristicValue":{"type":"string","description":"Optional, value of failed characteristic, filled when error is not missing mandatory char"},"serviceName":{"type":"string","description":"name of service order service to which char belong"},"serviceOrderItemId":{"type":"string","description":"if of service order item to which char belong"}}}}}