{"swagger":"2.0","info":{"description":"This spec is used to have JUnit Tests to check the generated code.","version":"1.1.0","title":"JUnit Tests"},"produces":["application/json"],"paths":{"/empty_endpoint":{"get":{"tags":["resource"],"operationId":"get_empty_endpoint","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/empty_model"}}}}},"/format_endpoint/{property_format}":{"get":{"tags":["resource"],"operationId":"get_format_endpoint","parameters":[{"name":"property_format","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/format_responses"}}}}},"/model_name/no_x-model_or_title":{"get":{"tags":["model_name_check"],"operationId":"getInlinedModelWithNoNames","parameters":[],"responses":{"200":{"description":"The expected model name is InlineResponse200 (generated by codegen)","schema":{"type":"object","properties":{"no_xmodel_no_title":{"type":"string","enum":["val1","val2"]}}}}}}},"/model_name/title_only":{"get":{"tags":["model_name_check"],"operationId":"getInlinedModelWithTitleOnly","parameters":[],"responses":{"200":{"description":"The expected model name is ModelWithOnlyTitle (title attribute)","schema":{"type":"object","properties":{"title_only":{"type":"string","enum":["val1","val2"]}},"title":"ModelWithOnlyTitle"}}}}},"/model_name/x-model_and_title":{"get":{"tags":["model_name_check"],"operationId":"getInlinedModelWithXModelAndTitle","parameters":[],"responses":{"200":{"description":"The expected model name is ModelWithXModelAndTitle (x-model attribute)","schema":{"type":"object","properties":{"xmodel_and_title":{"type":"string","enum":["val1","val2"]}},"title":"ThisShouldBeIgnored","x-model":"ModelWithXModelAndTitle"}}}}},"/model_name/x-model_only":{"get":{"tags":["model_name_check"],"operationId":"getInlinedModelWithXModelOnly","parameters":[],"responses":{"200":{"description":"The expected model name is ModelWithOnlyXModel (x-model attribute)","schema":{"type":"object","properties":{"xmodel_only":{"type":"string","enum":["val1","val2"]}},"x-model":"ModelWithOnlyXModel"}}}}},"/nested_additional_properties":{"get":{"tags":["resource"],"operationId":"get_nested_additional_properties","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/nested_additional_properties"}}}}},"/nested_additional_properties/custom_description":{"get":{"tags":["resource"],"operationId":"get_nested_additional_properties_custom_description","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/nested_additional_properties_custom_description"}}}}},"/post/file":{"post":{"tags":["file"],"operationId":"post_file","consumes":["multipart/form-data"],"parameters":[{"name":"client_file","in":"formData","required":true,"type":"file"}],"responses":{"default":{"description":"Something"}}}},"/post/file_without_consumes":{"post":{"tags":["file"],"operationId":"post_file_without_multipart_form_data","parameters":[{"name":"client_file","in":"formData","required":true,"type":"file"}],"responses":{"default":{"description":"Something"}}}},"/post/multiple_files":{"post":{"tags":["file"],"operationId":"post_multiple_files","consumes":["multipart/form-data"],"parameters":[{"name":"client_file","in":"formData","required":true,"type":"file"},{"name":"certificate_file","in":"formData","required":true,"type":"file"}],"responses":{"default":{"description":"Something"}}}},"/property_array/{value_type}/{size}":{"get":{"tags":["resource"],"operationId":"get_property_array","parameters":[{"name":"value_type","in":"path","required":true,"type":"string"},{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/property_array"}}}}},"/property_map/{value_type}/{size}":{"get":{"tags":["resource"],"operationId":"get_property_map","parameters":[{"name":"value_type","in":"path","required":true,"type":"string"},{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/property_map"}}}}},"/required/type_endpoint":{"get":{"tags":["resource"],"operationId":"get_required_type_endpoint","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/required_type_responses"}}}}},"/reserved_keywords":{"get":{"tags":["resource"],"operationId":"get_reserved_keywords","parameters":[{"name":"class","in":"query","required":false,"type":"string"},{"name":"data","in":"query","required":false,"type":"string"},{"name":"for","in":"query","required":false,"type":"string"},{"name":"operator","in":"query","required":false,"type":"string"},{"name":"val","in":"query","required":false,"type":"string"},{"name":"var","in":"query","required":false,"type":"string"},{"name":"when","in":"query","required":false,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/reserved_keywords"}}}}},"/symbols/in/parameter/name":{"get":{"tags":["resource"],"summary":"Test symbols in parameter name","description":"Make sure that symbols in parameter name are treated properly","operationId":"getSymbolsInParameterName","parameters":[{"name":"parameter","in":"query","required":false,"type":"string"},{"name":"brackets[]","in":"query","required":false,"type":"string"},{"name":"brackets[withText]","in":"query","required":false,"type":"string"},{"name":"dot.","in":"query","required":false,"type":"string"},{"name":"dot.withText","in":"query","required":false,"type":"string"}],"responses":{"200":{"description":"successful operation"}}}},"/top_level_enum":{"get":{"tags":["resource"],"operationId":"get_top_level_enum","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/top_level_enum"}}}}},"/top_level_enum/nested":{"get":{"tags":["resource"],"operationId":"get_top_level_enum_nested","parameters":[],"responses":{"200":{"description":"","schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/top_level_enum"}}}}}}},"/top_level_map/{size}":{"get":{"tags":["resource"],"operationId":"get_top_level_map","parameters":[{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/top_level_map"}}}}},"/type_endpoint/{property_type}":{"get":{"tags":["resource"],"operationId":"get_type_endpoint","parameters":[{"name":"property_type","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/type_responses"}}}}},"/xnullable/format_endpoint/{property_format}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_format_endpoint","parameters":[{"name":"property_format","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_format_responses"}}}}},"/xnullable/nested_additional_properties":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_nested_additional_properties","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_nested_additional_properties"}}}}},"/xnullable/property_array/{value_type}/{size}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_property_array","parameters":[{"name":"value_type","in":"path","required":true,"type":"string"},{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_property_array"}}}}},"/xnullable/property_map/{value_type}/{size}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_property_map","parameters":[{"name":"value_type","in":"path","required":true,"type":"string"},{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_property_map"}}}}},"/xnullable/required/property_array/{size}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_required_property_array","parameters":[{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_required_property_array"}}}}},"/xnullable/required/property_map/{size}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_required_property_map","parameters":[{"name":"size","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_required_property_map"}}}}},"/xnullable/required/type_endpoint/{property_type}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_required_type_endpoint","parameters":[{"name":"property_type","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_required_type_responses"}}}}},"/xnullable/type_endpoint/{property_type}":{"get":{"tags":["xnullable"],"operationId":"get_xnullable_type_endpoint","parameters":[{"name":"property_type","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/xnullable_type_responses"}}}}}},"definitions":{"empty_model":{"type":"object","x-model":"empty_model"},"format_responses":{"type":"object","properties":{"date_property":{"type":"string","format":"date"},"datetime_property":{"type":"string","format":"date-time"},"enum_property":{"type":"string","enum":["VALUE1","VALUE2"]}},"x-model":"format_responses"},"nested_additional_properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/top_level_map"},"x-model":"nested_additional_properties"},"nested_additional_properties_custom_description":{"allOf":[{"$ref":"#/definitions/nested_additional_properties"},{"description":"This is a workaroud to override the description provided by nested_additional_properties"}],"x-model":"nested_additional_properties_custom_description"},"property_array":{"type":"object","properties":{"number_array":{"type":"array","items":{"type":"number"}},"string_array":{"type":"array","items":{"type":"string"}}},"x-model":"property_array"},"property_map":{"type":"object","properties":{"number_map":{"type":"object","additionalProperties":{"type":"number"},"x-model":"number_map"},"object_map":{"type":"object","properties":{},"x-model":"object_map"},"string_map":{"type":"object","additionalProperties":{"type":"string"},"x-model":"string_map"}},"x-model":"property_map"},"required_type_responses":{"type":"object","required":["boolean_property","enum_property","integer_property","number_property","string_property"],"properties":{"boolean_property":{"type":"boolean"},"enum_property":{"type":"string","enum":["VALUE1","VALUE2"]},"integer_property":{"type":"integer"},"number_property":{"type":"number"},"string_property":{"type":"string"}},"x-model":"required_type_responses"},"reserved_keywords":{"type":"object","properties":{"class":{"type":"string"},"data":{"type":"string"},"for":{"type":"string"},"operator":{"type":"string"},"val":{"type":"string"},"var":{"type":"string"},"when":{"type":"string"}},"x-model":"reserved_keywords"},"top_level_enum":{"type":"string","enum":["TOP_LEVEL_VALUE1","TOP_LEVEL_VALUE2"],"x-model":"top_level_enum"},"top_level_map":{"type":"object","additionalProperties":{"type":"string"},"x-model":"top_level_map"},"type_responses":{"type":"object","properties":{"boolean_property":{"type":"boolean"},"integer_property":{"type":"integer"},"number_property":{"type":"number"},"string_property":{"type":"string"}},"x-model":"type_responses"},"xnullable_format_responses":{"type":"object","properties":{"date_property":{"type":"string","format":"date","x-nullable":true},"datetime_property":{"type":"string","format":"date-time","x-nullable":true},"double_property":{"type":"number","format":"double","x-nullable":true}},"x-model":"xnullable_format_responses"},"xnullable_map":{"type":"object","additionalProperties":{"type":"string","x-nullable":true},"x-model":"xnullable_map","x-nullable":true},"xnullable_nested_additional_properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/xnullable_map"},"x-model":"xnullable_nested_additional_properties"},"xnullable_property_array":{"type":"object","properties":{"number_array":{"type":"array","items":{"type":"number","x-nullable":true},"x-nullable":true},"string_array":{"type":"array","items":{"type":"string","x-nullable":true},"x-nullable":true}},"x-model":"xnullable_property_array"},"xnullable_property_map":{"type":"object","properties":{"number_map":{"type":"object","additionalProperties":{"type":"number","x-nullable":true},"x-model":"number_map","x-nullable":true},"object_map":{"type":"object","properties":{},"x-model":"object_map","x-nullable":true},"string_map":{"type":"object","additionalProperties":{"type":"string","x-nullable":true},"x-model":"string_map","x-nullable":true}},"x-model":"xnullable_property_map"},"xnullable_required_property_array":{"type":"object","required":["number_array","string_array"],"properties":{"number_array":{"type":"array","items":{"type":"number","x-nullable":true},"x-nullable":true},"string_array":{"type":"array","items":{"type":"string","x-nullable":true},"x-nullable":true}},"x-model":"xnullable_required_property_array"},"xnullable_required_property_map":{"type":"object","required":["number_map","object_map","string_map"],"properties":{"number_map":{"type":"object","additionalProperties":{"type":"number","x-nullable":true},"x-model":"number_map","x-nullable":true},"object_map":{"type":"object","properties":{},"x-model":"object_map","x-nullable":true},"string_map":{"type":"object","additionalProperties":{"type":"string","x-nullable":true},"x-model":"string_map","x-nullable":true}},"x-model":"xnullable_required_property_map"},"xnullable_required_type_responses":{"type":"object","required":["boolean_property","enum_property","integer_property","number_property","string_property"],"properties":{"boolean_property":{"type":"boolean","x-nullable":true},"enum_property":{"type":"string","enum":["VALUE1","VALUE2"],"x-nullable":true},"integer_property":{"type":"integer","x-nullable":true},"number_property":{"type":"number","x-nullable":true},"string_property":{"type":"string","x-nullable":true}},"x-model":"xnullable_required_type_responses"},"xnullable_type_responses":{"type":"object","properties":{"boolean_property":{"type":"boolean","x-nullable":true},"enum_property":{"type":"string","enum":["VALUE1","VALUE2"],"x-nullable":true},"integer_property":{"type":"integer","x-nullable":true},"number_property":{"type":"number","x-nullable":true},"string_property":{"type":"string","x-nullable":true}},"x-model":"xnullable_type_responses"}}}