diff --git a/docs/generators/eiffel.md b/docs/generators/eiffel.md index be23424b5c9..b2f38750eba 100644 --- a/docs/generators/eiffel.md +++ b/docs/generators/eiffel.md @@ -15,6 +15,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl | Type/Alias | Imports | | ---------- | ------- | +|File|FILE| +|List|LIST| +|Map|STRING_TABLE| +|Set|SET| +|file|FILE| ## INSTANTIATION TYPES @@ -52,6 +57,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
  • and
  • as
  • assign
  • +
  • attached
  • attribute
  • check
  • class
  • @@ -60,6 +66,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
  • current
  • debug
  • deferred
  • +
  • detachable
  • do
  • else
  • elseif
  • diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java index 2fa01ca65b5..f80183a7efb 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java @@ -48,8 +48,8 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co setReservedWordsLowerCase(Arrays.asList( // language reserved words - "across", "agent", "alias", "all", "and", "as", "assign", "attribute", "check", "class", "convert", - "create", "Current", "debug", "deferred", "do", "else", "elseif", "end", "ensure", "expanded", "export", + "across", "agent", "alias", "all", "and", "as", "assign", "attached", "attribute", "check", "class", "convert", + "create", "Current", "debug", "deferred", "detachable", "do", "else", "elseif", "end", "ensure", "expanded", "export", "external", "False", "feature", "from", "frozen", "if", "implies", "inherit", "inspect", "invariant", "like", "local", "loop", "not", "note", "obsolete", "old", "once", "only", "or", "Precursor", "redefine", "rename", "require", "rescue", "Result", "retry", "select", "separate", "then", "True", @@ -68,6 +68,7 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co typeMapping.put("long", "INTEGER_64"); typeMapping.put("number", "REAL_32"); typeMapping.put("float", "REAL_32"); + typeMapping.put("decimal", "REAL_64"); typeMapping.put("double", "REAL_64"); typeMapping.put("boolean", "BOOLEAN"); typeMapping.put("string", "STRING_32"); @@ -85,10 +86,17 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co typeMapping.put("map", "STRING_TABLE"); typeMapping.put("array", "LIST"); typeMapping.put("list", "LIST"); + typeMapping.put("AnyType", "ANY"); instantiationTypes.put("array", "ARRAYED_LIST"); instantiationTypes.put("list", "ARRAYED_LIST"); instantiationTypes.put("map", "STRING_TABLE"); + + importMapping.put("List", "LIST"); + importMapping.put("Set", "SET"); + importMapping.put("file", "FILE"); + importMapping.put("File", "FILE"); + importMapping.put("Map", "STRING_TABLE"); cliOptions.clear(); @@ -167,6 +175,12 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co @Override public String toModelFilename(String name) { + // We need to check if import-mapping has a different model for this class, so we use it + // instead of the auto-generated one. + if (importMapping.containsKey(name)) { + return importMapping.get(name); + } + if (!StringUtils.isEmpty(modelNamePrefix)) { name = modelNamePrefix + "_" + name; } @@ -191,6 +205,13 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co name = "model_" + name; // e.g. 200Response => Model200Response // (after camelize) } + // model name starts with _ + if (name.startsWith("_")) { + LOGGER.warn(name + " (model name starts with _) cannot be used as model name. Renamed to " + + ("model" + name)); + name = "model" + name; // e.g. 200Response => Model200Response + // (after camelize) + } return underscore(name); } @@ -278,7 +299,7 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co } else if (ModelUtils.isMapSchema(p)) { Schema inner = getAdditionalProperties(p); - return getSchemaType(p) + "[" + getTypeDeclaration(inner) + "]"; + return getSchemaType(p) + " [" + getTypeDeclaration(inner) + "]"; } // return super.getTypeDeclaration(p); @@ -315,7 +336,12 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co @Override public String toOperationId(String operationId) { - String sanitizedOperationId = sanitizeName(operationId); + // throw exception if method name is empty + if (StringUtils.isEmpty(operationId)) { + throw new RuntimeException("Empty method/operation name (operationId) not allowed"); + } + + String sanitizedOperationId = camelize(sanitizeName(operationId), true); // method name cannot use reserved keyword, e.g. return if (isReservedWord(sanitizedOperationId)) { @@ -323,6 +349,13 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co + camelize("call_" + operationId)); sanitizedOperationId = "call_" + sanitizedOperationId; } + + // operationId starts with a number + if (operationId.matches("^\\d.*")) { + LOGGER.warn(operationId + " (starting with a number) cannot be used as method sname. Renamed to " + camelize("call_" + operationId), true); + sanitizedOperationId = camelize("call_" + sanitizedOperationId, true); + } + // method name from updateSomething to update_Something. sanitizedOperationId = unCamelize(sanitizedOperationId); @@ -537,22 +570,23 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co @Override public String toInstantiationType(Schema p) { - if (ModelUtils.isMapSchema(p)) { - Schema additionalProperties2 = getAdditionalProperties(p); - String type = additionalProperties2.getType(); - if (null == type) { - LOGGER.error("No Type defined for Additional Schema " + additionalProperties2 + "\n" // - + "\tIn Schema: " + p); - } - String inner = toModelName(getSchemaType(additionalProperties2)); - return instantiationTypes.get("map") + " [" + inner + "]"; - } else if (ModelUtils.isArraySchema(p)) { - ArraySchema ap = (ArraySchema) p; - String inner = toModelName(getSchemaType(ap.getItems())); - return instantiationTypes.get("array") + " [" + inner + "]"; - } else { - return null; - } + return getTypeDeclaration(p); +// if (ModelUtils.isMapSchema(p)) { +// Schema additionalProperties2 = getAdditionalProperties(p); +// String type = additionalProperties2.getType(); +// if (null == type) { +// LOGGER.error("No Type defined for Additional Schema " + additionalProperties2 + "\n" // +// + "\tIn Schema: " + p); +// } +// String inner = toModelName(getSchemaType(additionalProperties2)); +// return instantiationTypes.get("map") + " [" + inner + "]"; +// } else if (ModelUtils.isArraySchema(p)) { +// ArraySchema ap = (ArraySchema) p; +// String inner = toModelName(getSchemaType(ap.getItems())); +// return instantiationTypes.get("array") + " [" + inner + "]"; +// } else { +// return null; +// } } public String unCamelize(String name) { diff --git a/modules/openapi-generator/src/main/resources/Eiffel/api.mustache b/modules/openapi-generator/src/main/resources/Eiffel/api.mustache index f401ee8de30..be029f379d3 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/api.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/api.mustache @@ -59,11 +59,11 @@ feature -- API Access end {{/formParams}} - if attached {STRING} api_client.select_header_accept (<<{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}>>),"Content-Type") - l_request.set_auth_names (<<{{#authMethods}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}}>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<{{#authMethods}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}}>>) l_response := api_client.call_api (l_path, "{{httpMethod}}", l_request, {{#returnType}}Void{{/returnType}}{{^returnType}}agent serializer{{/returnType}}, {{#returnType}}agent deserializer{{/returnType}}{{^returnType}}Void{{/returnType}}) {{#returnType}} if l_response.has_error then diff --git a/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache b/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache index 9f4a92a4589..1ca86a49e38 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache @@ -233,7 +233,8 @@ feature -- Query Parameter Helpers -- dateTime string date-time As defined by date-time - RFC3339 Result := date_time.date.debug_output elseif attached {STRING_32} a_param as str_32 then - Result := str_32 + -- TODO check if this is a good convertion. + Result := str_32.to_string_8 elseif attached {STRING_8} a_param as str_8 then Result := str_8 else @@ -420,18 +421,18 @@ feature -- HTTP client: call api end end - add_header_params (a_content_executor:HTTP_CLIENT_REQUEST_CONTEXT; a_header_params: STRING_TABLE [STRING]) + add_header_params (a_content_executor:HTTP_CLIENT_REQUEST_CONTEXT; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- Set header parameters `a_header_params' to the request context executor `a_content_executor', including default headers. do -- headers across a_header_params as ic loop - a_content_executor.add_header (ic.key.as_string_8, ic.item) + a_content_executor.add_header (ic.key.to_string_8, ic.item) end -- default headers across default_header_map as ic loop if not a_header_params.has (ic.key) then - a_content_executor.add_header (ic.key.as_string_8, ic.item) + a_content_executor.add_header (ic.key.to_string_8, ic.item) end end end @@ -484,7 +485,7 @@ feature -- HTTP client: Change Element feature {NONE} -- Implementation - default_header_map: STRING_TABLE [STRING] + default_header_map: STRING_TABLE [READABLE_STRING_8] -- default header map. http_session: detachable HTTP_CLIENT_SESSION diff --git a/modules/openapi-generator/src/main/resources/Eiffel/ecf.mustache b/modules/openapi-generator/src/main/resources/Eiffel/ecf.mustache index 73341130a9c..13720007773 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/ecf.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/ecf.mustache @@ -1,5 +1,5 @@ - + @@ -8,17 +8,17 @@ /CVS$ /EIFGENs$ - + - - - - - - + + + + + + diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/api_client_response.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/api_client_response.mustache index 989780fa6a6..d60c97b207b 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/api_client_response.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/api_client_response.mustache @@ -7,7 +7,7 @@ create feature {NONE} -- Initialization - make (a_response: detachable HTTP_CLIENT_RESPONSE; a_error: detachable API_ERROR; a_custom_deserializer: detachable FUNCTION [TUPLE [STRING, STRING, TYPE [detachable ANY]], detachable ANY]) + make (a_response: detachable HTTP_CLIENT_RESPONSE; a_error: detachable API_ERROR; a_custom_deserializer: detachable FUNCTION [TUPLE [READABLE_STRING_8, READABLE_STRING_8, TYPE [detachable ANY]], detachable ANY]) do response := a_response error := a_error @@ -23,6 +23,7 @@ feature -- Access end status: INTEGER + -- Status code of the response. do if attached response as l_response then Result := l_response.status @@ -32,7 +33,7 @@ feature -- Access feature -- Data data (a_type: TYPE [detachable ANY]): detachable ANY - -- Data representation of the HTTP Response + -- Data representation of the HTTP Response. do if attached response as l_response and then @@ -54,8 +55,7 @@ feature {NONE} -- Implementation response: detachable HTTP_CLIENT_RESPONSE -- Low level response returned by the API call. - deserializer: detachable FUNCTION [TUPLE [STRING, STRING, TYPE [detachable ANY]], detachable ANY] - -- function to map a response body with a given content type to the target - -- in the domain model. + deserializer: detachable FUNCTION [TUPLE [READABLE_STRING_8, READABLE_STRING_8, TYPE [detachable ANY]], detachable ANY] + -- Function to map a response body with a given content type to the target in the domain model. end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/api_i.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/api_i.mustache index 74670f65b4d..6b09f4c639e 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/api_i.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/api_i.mustache @@ -24,12 +24,12 @@ feature {NONE} -- Initialization feature -- Status Report last_error: detachable API_ERROR - -- last error if any from the API call. + -- Last error if any from the API call. feature -- Error reset_error - -- reset `last_error' to void. + -- Reset `last_error' to void. do last_error := Void end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/api_key_auth.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/api_key_auth.mustache index 3bbff19691a..de19ac4a6d1 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/api_key_auth.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/api_key_auth.mustache @@ -45,7 +45,7 @@ feature -- Change Element feature -- Access - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params(a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- . local l_value: STRING_32 diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/authentication.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/authentication.mustache index 8e274812fb5..9367ba5eee9 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/authentication.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/authentication.mustache @@ -5,7 +5,7 @@ deferred class feature -- Access - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params(a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- Apply authentication settings to header and query params. -- `a_query_params' List of query parameters. -- `a_header_params' Map of header parameters. diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache index 77f97354969..4df2e875fe4 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache @@ -10,10 +10,10 @@ inherit feature -- Access user_name: detachable STRING_32 - -- user name. + -- User name. password: detachable STRING_32 - -- password. + -- Password. feature -- Element Change @@ -35,14 +35,15 @@ feature -- Element Change feature -- Access - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params(a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- . do if attached user_name as l_username and then attached password as l_password then - a_header_params.force ("Basic " + (create {BASE64}).encoded_string (l_username + ":" + l_password) , "Authorization") + -- TODO check if this convertion it's ok. + a_header_params.force ("Basic " + (create {BASE64}).encoded_string (l_username.to_string_8 + ":" + l_password.to_string_8) , "Authorization") end end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache index e3298fcc588..36b37543919 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache @@ -20,11 +20,12 @@ feature -- Change Element access_token_set: access_token = a_token end - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params (a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- . do if attached access_token as l_access_token then - a_header_params.force ("Bearer " + l_access_token,"Authorization" ) + -- TODO check if this convertion is ok. + a_header_params.force ("Bearer " + l_access_token.to_string_8,"Authorization" ) end end end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache index 4792a416162..ada38d2c170 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache @@ -5,8 +5,8 @@ class feature -- Access - deserializer (f: FUNCTION [TUPLE [content_type:STRING; body:STRING; type:TYPE [detachable ANY]], detachable ANY]; a_content_type: STRING; a_body: STRING; a_type:TYPE [detachable ANY]): detachable ANY - -- -- From a given response deserialize body `a_body' with conent_type `a_content_type' to a target object of type `a_type'. + deserializer (f: FUNCTION [TUPLE [content_type:READABLE_STRING_8; body:READABLE_STRING_8; type:TYPE [detachable ANY]], detachable ANY]; a_content_type: READABLE_STRING_8; a_body: READABLE_STRING_8; a_type:TYPE [detachable ANY]): detachable ANY + -- From a given response deserialize body `a_body' with conent_type `a_content_type' to a target object of type `a_type'. do Result := f.item ([a_content_type, a_body, a_type]) end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache index 2d14650da95..070c9b6d8d4 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache @@ -6,9 +6,10 @@ class feature -- Access - serializer (f: FUNCTION [TUPLE [content_type:STRING; type:ANY],STRING]; a_content_type: STRING; a_type: ANY): STRING + serializer (f: FUNCTION [TUPLE [content_type:READABLE_STRING_8; type:ANY],READABLE_STRING_8]; a_content_type: READABLE_STRING_8; a_type: ANY): STRING_8 -- Serialize an object of type `a_type' using the content type `a_content_type'. do - Result := f.item ([a_content_type, a_type]) + -- TODO check if this convertion it's ok. + Result := f.item ([a_content_type, a_type]).to_string_8 end end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache index 91dc90ed929..3a6f2b04c8b 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache @@ -274,7 +274,7 @@ feature {NONE} -- Helpers: Object reference_from_json_object (a_json_object: JSON_OBJECT; ctx: JSON_DESERIALIZER_CONTEXT; a_type: detachable TYPE [detachable ANY]): detachable ANY local - l_type_name: detachable READABLE_STRING_32 + l_type_name: detachable READABLE_STRING_8 ref: REFLECTED_REFERENCE_OBJECT i: INTEGER fn: READABLE_STRING_GENERAL @@ -285,7 +285,7 @@ feature {NONE} -- Helpers: Object -- Updated to use the Type info insted of the type_field in JSON. -- fn.same_string ({JSON_REFLECTOR_SERIALIZER}.type_field_name if attached a_type then - l_type_name := a_type.name.as_string_32 + l_type_name := a_type.name.to_string_8 end Result := new_instance_of (l_type_name, a_type) if Result = Void then diff --git a/modules/openapi-generator/src/main/resources/Eiffel/model.mustache b/modules/openapi-generator/src/main/resources/Eiffel/model.mustache index a7640016b40..3d00ca47b4f 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/model.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/model.mustache @@ -1,26 +1,21 @@ class {{classname}} +{{#parent}} inherit +{{/parent}} - ANY - redefine - out - {{#parent}} - select - out - {{/parent}} - end {{#parent}} - {{{parent}}} + {{{parent}}} + {{^isPrimitiveType}} + {{^isMap}} + {{^isArray}} rename - out as out_{{{parentSchema}}}, - is_equal as is_equal_{{{parentSchema}}}, - copy as copy_{{{parentSchema}}} - select - is_equal_{{{parentSchema}}}, - copy_{{{parentSchema}}} - end + output as out_{{{parentSchema}}} + end + {{/isArray}} + {{/isMap}} + {{/isPrimitiveType}} {{/parent}} feature --Access @@ -28,8 +23,16 @@ feature --Access {{#vars}} {{^isInherited}} {{#isPrimitiveType}} - {{name}}: {{{dataType}}} - {{#description}}-- {{{description}}}{{/description}} + {{^isContainer}} + {{name}}: {{{dataType}}} + {{#description}}-- {{{description}}}{{/description}} + {{/isContainer}} + {{/isPrimitiveType}} + {{#isPrimitiveType}} + {{#isContainer}} + {{name}}: detachable {{{datatypeWithEnum}}} + {{#description}}-- {{{description}}}{{/description}} + {{/isContainer}} {{/isPrimitiveType}} {{^isPrimitiveType}} {{#isContainer}} @@ -61,7 +64,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/modules/openapi-generator/src/main/resources/Eiffel/test/ecf_test.mustache b/modules/openapi-generator/src/main/resources/Eiffel/test/ecf_test.mustache index 347dc9f6311..5e3d279e0b4 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/test/ecf_test.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/test/ecf_test.mustache @@ -1,5 +1,5 @@ - + @@ -8,15 +8,15 @@ /CVS$ /EIFGENs$ - + - - + + - + diff --git a/modules/openapi-generator/src/main/resources/Eiffel/travis.mustache b/modules/openapi-generator/src/main/resources/Eiffel/travis.mustache index 6cb4545088a..563530f458a 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/travis.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/travis.mustache @@ -1,16 +1,12 @@ language: eiffel before_script: - - export current_dir=$(pwd) - - echo current_dir - - cd .. - - wget https://ftp.eiffel.com/pub/beta/nightly/Eiffel_17.11_gpl_100608-linux-x86-64.tar.bz2 - - tar -xvf Eiffel_17.11_gpl_100608-linux-x86-64.tar.bz2 - - export ISE_EIFFEL=$PWD/Eiffel_17.11 + - export current_dir=$PWD ; echo current_dir=$current_dir ; cd .. - export ISE_PLATFORM=linux-x86-64 - - export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin - - export PATH=$PATH:$ISE_EIFFEL/tools/spec/$ISE_PLATFORM/bin + - curl -sSL https://www.eiffel.org/setup/install.sh | bash -s -- --channel latest > eiffel.rc + - source ./eiffel.rc + - echo `ec -version` - cd $current_dir - + # safelist branches: only: diff --git a/samples/client/petstore/eiffel/.openapi-generator-ignore b/samples/client/petstore/eiffel/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/samples/client/petstore/eiffel/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/samples/client/petstore/eiffel/.openapi-generator/FILES b/samples/client/petstore/eiffel/.openapi-generator/FILES new file mode 100644 index 00000000000..83e6afe2044 --- /dev/null +++ b/samples/client/petstore/eiffel/.openapi-generator/FILES @@ -0,0 +1,129 @@ +.openapi-generator-ignore +.travis.yml +README.md +api_client.ecf +docs/ADDITIONAL_PROPERTIES_ANY_TYPE.md +docs/ADDITIONAL_PROPERTIES_ARRAY.md +docs/ADDITIONAL_PROPERTIES_BOOLEAN.md +docs/ADDITIONAL_PROPERTIES_CLASS.md +docs/ADDITIONAL_PROPERTIES_INTEGER.md +docs/ADDITIONAL_PROPERTIES_NUMBER.md +docs/ADDITIONAL_PROPERTIES_OBJECT.md +docs/ADDITIONAL_PROPERTIES_STRING.md +docs/ANIMAL.md +docs/ANOTHERFAKE_API.md +docs/API_RESPONSE.md +docs/ARRAY_OF_ARRAY_OF_NUMBER_ONLY.md +docs/ARRAY_OF_NUMBER_ONLY.md +docs/ARRAY_TEST.md +docs/BIG_CAT.md +docs/BIG_CAT_ALL_OF.md +docs/CAPITALIZATION.md +docs/CAT.md +docs/CATEGORY.md +docs/CAT_ALL_OF.md +docs/CLASS_MODEL.md +docs/CLIENT.md +docs/DOG.md +docs/DOG_ALL_OF.md +docs/ENUM_ARRAYS.md +docs/ENUM_CLASS.md +docs/ENUM_TEST.md +docs/FAKECLASSNAMETAGS123_API.md +docs/FAKE_API.md +docs/FILE_SCHEMA_TEST_CLASS.md +docs/FORMAT_TEST.md +docs/HAS_ONLY_READ_ONLY.md +docs/MAP_TEST.md +docs/MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS.md +docs/MODEL_200_RESPONSE.md +docs/NAME.md +docs/NUMBER_ONLY.md +docs/ORDER.md +docs/OUTER_COMPOSITE.md +docs/OUTER_ENUM.md +docs/PET.md +docs/PET_API.md +docs/READ_ONLY_FIRST.md +docs/RETURN.md +docs/SPECIAL_MODEL_NAME.md +docs/STORE_API.md +docs/TAG.md +docs/TYPE_HOLDER_DEFAULT.md +docs/TYPE_HOLDER_EXAMPLE.md +docs/USER.md +docs/USER_API.md +docs/XML_ITEM.md +src/api/another_fake_api.e +src/api/fake_api.e +src/api/fake_classname_tags123_api.e +src/api/pet_api.e +src/api/store_api.e +src/api/user_api.e +src/api_client.e +src/domain/additional_properties_any_type.e +src/domain/additional_properties_array.e +src/domain/additional_properties_boolean.e +src/domain/additional_properties_class.e +src/domain/additional_properties_integer.e +src/domain/additional_properties_number.e +src/domain/additional_properties_object.e +src/domain/additional_properties_string.e +src/domain/animal.e +src/domain/api_response.e +src/domain/array_of_array_of_number_only.e +src/domain/array_of_number_only.e +src/domain/array_test.e +src/domain/big_cat.e +src/domain/big_cat_all_of.e +src/domain/capitalization.e +src/domain/cat.e +src/domain/cat_all_of.e +src/domain/category.e +src/domain/class_model.e +src/domain/client.e +src/domain/dog.e +src/domain/dog_all_of.e +src/domain/enum_arrays.e +src/domain/enum_class.e +src/domain/enum_test.e +src/domain/file_schema_test_class.e +src/domain/format_test.e +src/domain/has_only_read_only.e +src/domain/map_test.e +src/domain/mixed_properties_and_additional_properties_class.e +src/domain/model_200_response.e +src/domain/name.e +src/domain/number_only.e +src/domain/order.e +src/domain/outer_composite.e +src/domain/outer_enum.e +src/domain/pet.e +src/domain/read_only_first.e +src/domain/return.e +src/domain/special_model_name.e +src/domain/tag.e +src/domain/type_holder_default.e +src/domain/type_holder_example.e +src/domain/user.e +src/domain/xml_item.e +src/framework/api_client_request.e +src/framework/api_client_response.e +src/framework/api_error.e +src/framework/api_i.e +src/framework/auth/api_key_auth.e +src/framework/auth/authentication.e +src/framework/auth/http_basic_auth.e +src/framework/auth/oauth.e +src/framework/configuration.e +src/framework/serialization/api_deserializer.e +src/framework/serialization/api_json_deserializer.e +src/framework/serialization/api_json_serializer.e +src/framework/serialization/api_serializer.e +src/framework/serialization/json_basic_reflector_deserializer.e +src/framework/serialization/json_type_utilities_ext.e +test/api_test.ecf +test/apis/anotherfake_api_test.e +test/apis/fake_api_test.e +test/apis/fakeclassnametags123_api_test.e +test/application.e diff --git a/samples/client/petstore/eiffel/.openapi-generator/VERSION b/samples/client/petstore/eiffel/.openapi-generator/VERSION index 096bf47efe3..d99e7162d01 100644 --- a/samples/client/petstore/eiffel/.openapi-generator/VERSION +++ b/samples/client/petstore/eiffel/.openapi-generator/VERSION @@ -1 +1 @@ -3.0.0-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/eiffel/.travis.yml b/samples/client/petstore/eiffel/.travis.yml index 6cb4545088a..563530f458a 100644 --- a/samples/client/petstore/eiffel/.travis.yml +++ b/samples/client/petstore/eiffel/.travis.yml @@ -1,16 +1,12 @@ language: eiffel before_script: - - export current_dir=$(pwd) - - echo current_dir - - cd .. - - wget https://ftp.eiffel.com/pub/beta/nightly/Eiffel_17.11_gpl_100608-linux-x86-64.tar.bz2 - - tar -xvf Eiffel_17.11_gpl_100608-linux-x86-64.tar.bz2 - - export ISE_EIFFEL=$PWD/Eiffel_17.11 + - export current_dir=$PWD ; echo current_dir=$current_dir ; cd .. - export ISE_PLATFORM=linux-x86-64 - - export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin - - export PATH=$PATH:$ISE_EIFFEL/tools/spec/$ISE_PLATFORM/bin + - curl -sSL https://www.eiffel.org/setup/install.sh | bash -s -- --channel latest > eiffel.rc + - source ./eiffel.rc + - echo `ec -version` - cd $current_dir - + # safelist branches: only: diff --git a/samples/client/petstore/eiffel/README.md b/samples/client/petstore/eiffel/README.md index bb363368532..eaa85495f27 100644 --- a/samples/client/petstore/eiffel/README.md +++ b/samples/client/petstore/eiffel/README.md @@ -21,17 +21,21 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ANOTHERFAKE_API* | [**test_special_tags**](docs/ANOTHERFAKE_API.md#test_special_tags) | **Patch** /another-fake/dummy | To test special tags +*ANOTHERFAKE_API* | [**call123test_special_tags**](docs/ANOTHERFAKE_API.md#call123test_special_tags) | **Patch** /another-fake/dummy | To test special tags +*FAKE_API* | [**create_xml_item**](docs/FAKE_API.md#create_xml_item) | **Post** /fake/create_xml_item | creates an XmlItem *FAKE_API* | [**fake_outer_boolean_serialize**](docs/FAKE_API.md#fake_outer_boolean_serialize) | **Post** /fake/outer/boolean | *FAKE_API* | [**fake_outer_composite_serialize**](docs/FAKE_API.md#fake_outer_composite_serialize) | **Post** /fake/outer/composite | *FAKE_API* | [**fake_outer_number_serialize**](docs/FAKE_API.md#fake_outer_number_serialize) | **Post** /fake/outer/number | *FAKE_API* | [**fake_outer_string_serialize**](docs/FAKE_API.md#fake_outer_string_serialize) | **Post** /fake/outer/string | +*FAKE_API* | [**test_body_with_file_schema**](docs/FAKE_API.md#test_body_with_file_schema) | **Put** /fake/body-with-file-schema | *FAKE_API* | [**test_body_with_query_params**](docs/FAKE_API.md#test_body_with_query_params) | **Put** /fake/body-with-query-params | *FAKE_API* | [**test_client_model**](docs/FAKE_API.md#test_client_model) | **Patch** /fake | To test \"client\" model -*FAKE_API* | [**test_endpoint_parameters**](docs/FAKE_API.md#test_endpoint_parameters) | **Post** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +*FAKE_API* | [**test_endpoint_parameters**](docs/FAKE_API.md#test_endpoint_parameters) | **Post** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 *FAKE_API* | [**test_enum_parameters**](docs/FAKE_API.md#test_enum_parameters) | **Get** /fake | To test enum parameters +*FAKE_API* | [**test_group_parameters**](docs/FAKE_API.md#test_group_parameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) *FAKE_API* | [**test_inline_additional_properties**](docs/FAKE_API.md#test_inline_additional_properties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties *FAKE_API* | [**test_json_form_data**](docs/FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data +*FAKE_API* | [**test_query_parameter_collection_format**](docs/FAKE_API.md#test_query_parameter_collection_format) | **Put** /fake/test-query-paramters | *FAKECLASSNAMETAGS123_API* | [**test_classname**](docs/FAKECLASSNAMETAGS123_API.md#test_classname) | **Patch** /fake_classname_test | To test class name in snake case *PET_API* | [**add_pet**](docs/PET_API.md#add_pet) | **Post** /pet | Add a new pet to the store *PET_API* | [**delete_pet**](docs/PET_API.md#delete_pet) | **Delete** /pet/{petId} | Deletes a pet @@ -41,6 +45,7 @@ Class | Method | HTTP request | Description *PET_API* | [**update_pet**](docs/PET_API.md#update_pet) | **Put** /pet | Update an existing pet *PET_API* | [**update_pet_with_form**](docs/PET_API.md#update_pet_with_form) | **Post** /pet/{petId} | Updates a pet in the store with form data *PET_API* | [**upload_file**](docs/PET_API.md#upload_file) | **Post** /pet/{petId}/uploadImage | uploads an image +*PET_API* | [**upload_file_with_required_file**](docs/PET_API.md#upload_file_with_required_file) | **Post** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) *STORE_API* | [**delete_order**](docs/STORE_API.md#delete_order) | **Delete** /store/order/{order_id} | Delete purchase order by ID *STORE_API* | [**inventory**](docs/STORE_API.md#inventory) | **Get** /store/inventory | Returns pet inventories by status *STORE_API* | [**order_by_id**](docs/STORE_API.md#order_by_id) | **Get** /store/order/{order_id} | Find purchase order by ID @@ -57,22 +62,33 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [ADDITIONAL_PROPERTIES_ANY_TYPE](docs/ADDITIONAL_PROPERTIES_ANY_TYPE.md) + - [ADDITIONAL_PROPERTIES_ARRAY](docs/ADDITIONAL_PROPERTIES_ARRAY.md) + - [ADDITIONAL_PROPERTIES_BOOLEAN](docs/ADDITIONAL_PROPERTIES_BOOLEAN.md) - [ADDITIONAL_PROPERTIES_CLASS](docs/ADDITIONAL_PROPERTIES_CLASS.md) + - [ADDITIONAL_PROPERTIES_INTEGER](docs/ADDITIONAL_PROPERTIES_INTEGER.md) + - [ADDITIONAL_PROPERTIES_NUMBER](docs/ADDITIONAL_PROPERTIES_NUMBER.md) + - [ADDITIONAL_PROPERTIES_OBJECT](docs/ADDITIONAL_PROPERTIES_OBJECT.md) + - [ADDITIONAL_PROPERTIES_STRING](docs/ADDITIONAL_PROPERTIES_STRING.md) - [ANIMAL](docs/ANIMAL.md) - - [ANIMAL_FARM](docs/ANIMAL_FARM.md) - [API_RESPONSE](docs/API_RESPONSE.md) - [ARRAY_OF_ARRAY_OF_NUMBER_ONLY](docs/ARRAY_OF_ARRAY_OF_NUMBER_ONLY.md) - [ARRAY_OF_NUMBER_ONLY](docs/ARRAY_OF_NUMBER_ONLY.md) - [ARRAY_TEST](docs/ARRAY_TEST.md) + - [BIG_CAT](docs/BIG_CAT.md) + - [BIG_CAT_ALL_OF](docs/BIG_CAT_ALL_OF.md) - [CAPITALIZATION](docs/CAPITALIZATION.md) - [CAT](docs/CAT.md) - [CATEGORY](docs/CATEGORY.md) + - [CAT_ALL_OF](docs/CAT_ALL_OF.md) - [CLASS_MODEL](docs/CLASS_MODEL.md) - [CLIENT](docs/CLIENT.md) - [DOG](docs/DOG.md) + - [DOG_ALL_OF](docs/DOG_ALL_OF.md) - [ENUM_ARRAYS](docs/ENUM_ARRAYS.md) - [ENUM_CLASS](docs/ENUM_CLASS.md) - [ENUM_TEST](docs/ENUM_TEST.md) + - [FILE_SCHEMA_TEST_CLASS](docs/FILE_SCHEMA_TEST_CLASS.md) - [FORMAT_TEST](docs/FORMAT_TEST.md) - [HAS_ONLY_READ_ONLY](docs/HAS_ONLY_READ_ONLY.md) - [MAP_TEST](docs/MAP_TEST.md) @@ -88,7 +104,10 @@ Class | Method | HTTP request | Description - [RETURN](docs/RETURN.md) - [SPECIAL_MODEL_NAME](docs/SPECIAL_MODEL_NAME.md) - [TAG](docs/TAG.md) + - [TYPE_HOLDER_DEFAULT](docs/TYPE_HOLDER_DEFAULT.md) + - [TYPE_HOLDER_EXAMPLE](docs/TYPE_HOLDER_EXAMPLE.md) - [USER](docs/USER.md) + - [XML_ITEM](docs/XML_ITEM.md) ## Documentation For Authorization diff --git a/samples/client/petstore/eiffel/api_client.ecf b/samples/client/petstore/eiffel/api_client.ecf index 6f0ef48e482..f57991baec1 100644 --- a/samples/client/petstore/eiffel/api_client.ecf +++ b/samples/client/petstore/eiffel/api_client.ecf @@ -1,5 +1,5 @@ - + @@ -8,17 +8,17 @@ /CVS$ /EIFGENs$ - + - - - - - - + + + + + + diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_ANY_TYPE.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_ANY_TYPE.md new file mode 100644 index 00000000000..a1073f5a84a --- /dev/null +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_ANY_TYPE.md @@ -0,0 +1,10 @@ +# ADDITIONAL_PROPERTIES_ANY_TYPE + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/OUTER_NUMBER.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_ARRAY.md similarity index 72% rename from samples/client/petstore/eiffel/docs/OUTER_NUMBER.md rename to samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_ARRAY.md index 7072c86a493..d9ad820dfe7 100644 --- a/samples/client/petstore/eiffel/docs/OUTER_NUMBER.md +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_ARRAY.md @@ -1,8 +1,9 @@ -# OUTER_NUMBER +# ADDITIONAL_PROPERTIES_ARRAY ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_BOOLEAN.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_BOOLEAN.md new file mode 100644 index 00000000000..920d071fe79 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_BOOLEAN.md @@ -0,0 +1,10 @@ +# ADDITIONAL_PROPERTIES_BOOLEAN + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_CLASS.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_CLASS.md index 6c76a177ee5..5245820f056 100644 --- a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_CLASS.md +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_CLASS.md @@ -3,8 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**map_property** | [**STRING_TABLE[STRING_32]**](STRING_32.md) | | [optional] [default to null] -**map_of_map_property** | [**STRING_TABLE[STRING_TABLE[STRING_32]]**](STRING_TABLE.md) | | [optional] [default to null] +**map_string** | [**STRING_TABLE [STRING_32]**](STRING_32.md) | | [optional] [default to null] +**map_number** | **STRING_TABLE [REAL_32]** | | [optional] [default to null] +**map_integer** | **STRING_TABLE [INTEGER_32]** | | [optional] [default to null] +**map_boolean** | **STRING_TABLE [BOOLEAN]** | | [optional] [default to null] +**map_array_integer** | [**STRING_TABLE [LIST [INTEGER_32]]**](LIST.md) | | [optional] [default to null] +**map_array_anytype** | [**STRING_TABLE [LIST [ANY]]**](LIST.md) | | [optional] [default to null] +**map_map_string** | [**STRING_TABLE [STRING_TABLE [STRING_32]]**](STRING_TABLE.md) | | [optional] [default to null] +**map_map_anytype** | [**STRING_TABLE [STRING_TABLE [ANY]]**](STRING_TABLE.md) | | [optional] [default to null] +**anytype_1** | [**ANY**](.md) | | [optional] [default to null] +**anytype_2** | [**ANY**](.md) | | [optional] [default to null] +**anytype_3** | [**ANY**](.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_INTEGER.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_INTEGER.md new file mode 100644 index 00000000000..dc220c41416 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_INTEGER.md @@ -0,0 +1,10 @@ +# ADDITIONAL_PROPERTIES_INTEGER + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_NUMBER.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_NUMBER.md new file mode 100644 index 00000000000..29b07fa5f48 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_NUMBER.md @@ -0,0 +1,10 @@ +# ADDITIONAL_PROPERTIES_NUMBER + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_OBJECT.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_OBJECT.md new file mode 100644 index 00000000000..ac73300b26b --- /dev/null +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_OBJECT.md @@ -0,0 +1,10 @@ +# ADDITIONAL_PROPERTIES_OBJECT + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_STRING.md b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_STRING.md new file mode 100644 index 00000000000..efabc5df6a9 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/ADDITIONAL_PROPERTIES_STRING.md @@ -0,0 +1,10 @@ +# ADDITIONAL_PROPERTIES_STRING + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/ANOTHERFAKE_API.md b/samples/client/petstore/eiffel/docs/ANOTHERFAKE_API.md index fce27e0aa2f..2bb4791e89f 100644 --- a/samples/client/petstore/eiffel/docs/ANOTHERFAKE_API.md +++ b/samples/client/petstore/eiffel/docs/ANOTHERFAKE_API.md @@ -4,23 +4,23 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Feature | HTTP request | Description ------------- | ------------- | ------------- -[**test_special_tags**](ANOTHERFAKE_API.md#test_special_tags) | **Patch** /another-fake/dummy | To test special tags +[**call123test_special_tags**](ANOTHERFAKE_API.md#call123test_special_tags) | **Patch** /another-fake/dummy | To test special tags -# **test_special_tags** -> test_special_tags (client: CLIENT ): detachable CLIENT +# **call123test_special_tags** +> call123test_special_tags (body: CLIENT ): detachable CLIENT To test special tags -To test special tags +To test special tags and operation ID starting with number ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**CLIENT**](CLIENT.md)| client model | + **body** | [**CLIENT**](CLIENT.md)| client model | ### Return type diff --git a/samples/client/petstore/eiffel/docs/BIG_CAT.md b/samples/client/petstore/eiffel/docs/BIG_CAT.md new file mode 100644 index 00000000000..16e79a6c191 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/BIG_CAT.md @@ -0,0 +1,13 @@ +# BIG_CAT + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**class_name** | [**STRING_32**](STRING_32.md) | | [default to null] +**color** | [**STRING_32**](STRING_32.md) | | [optional] [default to red] +**declawed** | **BOOLEAN** | | [optional] [default to null] +**kind** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/OUTER_BOOLEAN.md b/samples/client/petstore/eiffel/docs/BIG_CAT_ALL_OF.md similarity index 74% rename from samples/client/petstore/eiffel/docs/OUTER_BOOLEAN.md rename to samples/client/petstore/eiffel/docs/BIG_CAT_ALL_OF.md index 8713f8e57c7..05c301d7966 100644 --- a/samples/client/petstore/eiffel/docs/OUTER_BOOLEAN.md +++ b/samples/client/petstore/eiffel/docs/BIG_CAT_ALL_OF.md @@ -1,8 +1,9 @@ -# OUTER_BOOLEAN +# BIG_CAT_ALL_OF ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**kind** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/CATEGORY.md b/samples/client/petstore/eiffel/docs/CATEGORY.md index de2ce34e627..9f076ba276d 100644 --- a/samples/client/petstore/eiffel/docs/CATEGORY.md +++ b/samples/client/petstore/eiffel/docs/CATEGORY.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **INTEGER_64** | | [optional] [default to null] -**name** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**name** | [**STRING_32**](STRING_32.md) | | [default to default-name] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/ANIMAL_FARM.md b/samples/client/petstore/eiffel/docs/CAT_ALL_OF.md similarity index 78% rename from samples/client/petstore/eiffel/docs/ANIMAL_FARM.md rename to samples/client/petstore/eiffel/docs/CAT_ALL_OF.md index 9102fabdc28..5d36afc8005 100644 --- a/samples/client/petstore/eiffel/docs/ANIMAL_FARM.md +++ b/samples/client/petstore/eiffel/docs/CAT_ALL_OF.md @@ -1,8 +1,9 @@ -# ANIMAL_FARM +# CAT_ALL_OF ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**declawed** | **BOOLEAN** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/OUTER_STRING.md b/samples/client/petstore/eiffel/docs/DOG_ALL_OF.md similarity index 75% rename from samples/client/petstore/eiffel/docs/OUTER_STRING.md rename to samples/client/petstore/eiffel/docs/DOG_ALL_OF.md index 66dfe46dfef..652e5549542 100644 --- a/samples/client/petstore/eiffel/docs/OUTER_STRING.md +++ b/samples/client/petstore/eiffel/docs/DOG_ALL_OF.md @@ -1,8 +1,9 @@ -# OUTER_STRING +# DOG_ALL_OF ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**breed** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/FAKECLASSNAMETAGS123_API.md b/samples/client/petstore/eiffel/docs/FAKECLASSNAMETAGS123_API.md index 26344acdb28..3ae91b654c2 100644 --- a/samples/client/petstore/eiffel/docs/FAKECLASSNAMETAGS123_API.md +++ b/samples/client/petstore/eiffel/docs/FAKECLASSNAMETAGS123_API.md @@ -8,7 +8,7 @@ Feature | HTTP request | Description # **test_classname** -> test_classname (client: CLIENT ): detachable CLIENT +> test_classname (body: CLIENT ): detachable CLIENT To test class name in snake case @@ -20,7 +20,7 @@ To test class name in snake case Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**CLIENT**](CLIENT.md)| client model | + **body** | [**CLIENT**](CLIENT.md)| client model | ### Return type diff --git a/samples/client/petstore/eiffel/docs/FAKE_API.md b/samples/client/petstore/eiffel/docs/FAKE_API.md index 94888d07772..e682cd41891 100644 --- a/samples/client/petstore/eiffel/docs/FAKE_API.md +++ b/samples/client/petstore/eiffel/docs/FAKE_API.md @@ -4,18 +4,52 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Feature | HTTP request | Description ------------- | ------------- | ------------- +[**create_xml_item**](FAKE_API.md#create_xml_item) | **Post** /fake/create_xml_item | creates an XmlItem [**fake_outer_boolean_serialize**](FAKE_API.md#fake_outer_boolean_serialize) | **Post** /fake/outer/boolean | [**fake_outer_composite_serialize**](FAKE_API.md#fake_outer_composite_serialize) | **Post** /fake/outer/composite | [**fake_outer_number_serialize**](FAKE_API.md#fake_outer_number_serialize) | **Post** /fake/outer/number | [**fake_outer_string_serialize**](FAKE_API.md#fake_outer_string_serialize) | **Post** /fake/outer/string | +[**test_body_with_file_schema**](FAKE_API.md#test_body_with_file_schema) | **Put** /fake/body-with-file-schema | [**test_body_with_query_params**](FAKE_API.md#test_body_with_query_params) | **Put** /fake/body-with-query-params | [**test_client_model**](FAKE_API.md#test_client_model) | **Patch** /fake | To test \"client\" model -[**test_endpoint_parameters**](FAKE_API.md#test_endpoint_parameters) | **Post** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +[**test_endpoint_parameters**](FAKE_API.md#test_endpoint_parameters) | **Post** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 [**test_enum_parameters**](FAKE_API.md#test_enum_parameters) | **Get** /fake | To test enum parameters +[**test_group_parameters**](FAKE_API.md#test_group_parameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FAKE_API.md#test_inline_additional_properties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data +[**test_query_parameter_collection_format**](FAKE_API.md#test_query_parameter_collection_format) | **Put** /fake/test-query-paramters | +# **create_xml_item** +> create_xml_item (xml_item: XML_ITEM ) + + +creates an XmlItem + +this route creates an XmlItem + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xml_item** | [**XML_ITEM**](XML_ITEM.md)| XmlItem Body | + +### Return type + +{empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **fake_outer_boolean_serialize** > fake_outer_boolean_serialize (body: detachable BOOLEAN ): detachable BOOLEAN @@ -47,7 +81,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_composite_serialize** -> fake_outer_composite_serialize (outer_composite: detachable OUTER_COMPOSITE ): detachable OUTER_COMPOSITE +> fake_outer_composite_serialize (body: detachable OUTER_COMPOSITE ): detachable OUTER_COMPOSITE @@ -59,7 +93,7 @@ Test serialization of object with outer number type Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outer_composite** | [**OUTER_COMPOSITE**](OUTER_COMPOSITE.md)| Input composite as post body | [optional] + **body** | [**OUTER_COMPOSITE**](OUTER_COMPOSITE.md)| Input composite as post body | [optional] ### Return type @@ -136,8 +170,38 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **test_body_with_file_schema** +> test_body_with_file_schema (body: FILE_SCHEMA_TEST_CLASS ) + + + + +For this test, the body for this request much reference a schema named `File`. + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**FILE_SCHEMA_TEST_CLASS**](FILE_SCHEMA_TEST_CLASS.md)| | + +### Return type + +{empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **test_body_with_query_params** -> test_body_with_query_params (query: STRING_32 ; user: USER ) +> test_body_with_query_params (query: STRING_32 ; body: USER ) @@ -147,8 +211,8 @@ No authorization required Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **query** | **STRING_32**| | - **user** | [**USER**](USER.md)| | + **query** | **STRING_32**| | [default to null] + **body** | [**USER**](USER.md)| | ### Return type @@ -166,7 +230,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_client_model** -> test_client_model (client: CLIENT ): detachable CLIENT +> test_client_model (body: CLIENT ): detachable CLIENT To test \"client\" model @@ -178,7 +242,7 @@ To test \"client\" model Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**CLIENT**](CLIENT.md)| client model | + **body** | [**CLIENT**](CLIENT.md)| client model | ### Return type @@ -196,12 +260,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_endpoint_parameters** -> test_endpoint_parameters (number: REAL_32 ; double: REAL_64 ; pattern_without_delimiter: STRING_32 ; byte: ARRAY [NATURAL_8] ; integer: detachable INTEGER_32 ; int32: detachable INTEGER_32 ; int64: detachable INTEGER_64 ; float: detachable REAL_32 ; string: detachable STRING_32 ; binary: detachable FILE ; date: detachable DATE ; date_time: detachable DATE_TIME ; password: detachable STRING_32 ; callback: detachable STRING_32 ) +> test_endpoint_parameters (number: REAL_32 ; double: REAL_64 ; pattern_without_delimiter: STRING_32 ; byte: ARRAY [NATURAL_8] ; integer: detachable INTEGER_32 ; int32: detachable INTEGER_32 ; int64: detachable INTEGER_64 ; float: detachable REAL_32 ; string: detachable STRING_32 ; binary: detachable FILE ; date: detachable DATE ; date_time: detachable DATE_TIME ; password: detachable STRING ; callback: detachable STRING_32 ) -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ### Parameters @@ -220,7 +284,7 @@ Name | Type | Description | Notes **binary** | **FILE**| None | [optional] [default to null] **date** | **DATE**| None | [optional] [default to null] **date_time** | **DATE_TIME**| None | [optional] [default to null] - **password** | **STRING_32**| None | [optional] [default to null] + **password** | **STRING**| None | [optional] [default to null] **callback** | **STRING_32**| None | [optional] [default to null] ### Return type @@ -251,13 +315,13 @@ To test enum parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enum_header_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Header parameter enum test (string array) | [optional] + **enum_header_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Header parameter enum test (string array) | [optional] [default to null] **enum_header_string** | **STRING_32**| Header parameter enum test (string) | [optional] [default to -efg] - **enum_query_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Query parameter enum test (string array) | [optional] + **enum_query_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Query parameter enum test (string array) | [optional] [default to null] **enum_query_string** | **STRING_32**| Query parameter enum test (string) | [optional] [default to -efg] - **enum_query_integer** | **INTEGER_32**| Query parameter enum test (double) | [optional] - **enum_query_double** | **REAL_64**| Query parameter enum test (double) | [optional] - **enum_form_string_array** | **LIST [STRING_32]**| Form parameter enum test (string array) | [optional] [default to $] + **enum_query_integer** | **INTEGER_32**| Query parameter enum test (double) | [optional] [default to null] + **enum_query_double** | **REAL_64**| Query parameter enum test (double) | [optional] [default to null] + **enum_form_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Form parameter enum test (string array) | [optional] [default to $] **enum_form_string** | **STRING_32**| Form parameter enum test (string) | [optional] [default to -efg] ### Return type @@ -275,8 +339,43 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **test_group_parameters** +> test_group_parameters (required_string_group: INTEGER_32 ; required_boolean_group: BOOLEAN ; required_int64_group: INTEGER_64 ; string_group: detachable INTEGER_32 ; boolean_group: detachable BOOLEAN ; int64_group: detachable INTEGER_64 ) + + +Fake endpoint to test group parameters (optional) + +Fake endpoint to test group parameters (optional) + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **required_string_group** | **INTEGER_32**| Required String in group parameters | [default to null] + **required_boolean_group** | **BOOLEAN**| Required Boolean in group parameters | [default to null] + **required_int64_group** | **INTEGER_64**| Required Integer in group parameters | [default to null] + **string_group** | **INTEGER_32**| String in group parameters | [optional] [default to null] + **boolean_group** | **BOOLEAN**| Boolean in group parameters | [optional] [default to null] + **int64_group** | **INTEGER_64**| Integer in group parameters | [optional] [default to null] + +### Return type + +{empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **test_inline_additional_properties** -> test_inline_additional_properties (request_body: STRING_TABLE[STRING_32] ) +> test_inline_additional_properties (param: STRING_TABLE [STRING_32] ) test inline additionalProperties @@ -286,7 +385,7 @@ test inline additionalProperties Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_body** | [**STRING_TABLE[STRING_32]**](STRING_32.md)| request body | + **param** | [**STRING_TABLE [STRING_32]**](STRING_32.md)| request body | ### Return type @@ -332,3 +431,37 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **test_query_parameter_collection_format** +> test_query_parameter_collection_format (pipe: LIST [STRING_32] ; ioutil: LIST [STRING_32] ; http: LIST [STRING_32] ; url: LIST [STRING_32] ; context: LIST [STRING_32] ) + + + + +To test the collection format in query parameters + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pipe** | [**LIST [STRING_32]**](STRING_32.md)| | [default to null] + **ioutil** | [**LIST [STRING_32]**](STRING_32.md)| | [default to null] + **http** | [**LIST [STRING_32]**](STRING_32.md)| | [default to null] + **url** | [**LIST [STRING_32]**](STRING_32.md)| | [default to null] + **context** | [**LIST [STRING_32]**](STRING_32.md)| | [default to null] + +### Return type + +{empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/samples/client/petstore/eiffel/docs/FAKE_CLASSNAME_TAGS123_API.md b/samples/client/petstore/eiffel/docs/FAKE_CLASSNAME_TAGS123_API.md deleted file mode 100644 index bc05c6bb01e..00000000000 --- a/samples/client/petstore/eiffel/docs/FAKE_CLASSNAME_TAGS123_API.md +++ /dev/null @@ -1,37 +0,0 @@ -# FAKE_CLASSNAME_TAGS123_API - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Feature | HTTP request | Description -------------- | ------------- | ------------- -[**test_classname**](FAKE_CLASSNAME_TAGS123_API.md#test_classname) | **Patch** /fake_classname_test | To test class name in snake case - - -# **test_classname** -> test_classname (body: CLIENT ): detachable CLIENT - - -To test class name in snake case - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**CLIENT**](CLIENT.md)| client model | - -### Return type - -[**CLIENT**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/eiffel/docs/FILE_SCHEMA_TEST_CLASS.md b/samples/client/petstore/eiffel/docs/FILE_SCHEMA_TEST_CLASS.md new file mode 100644 index 00000000000..3c703346678 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/FILE_SCHEMA_TEST_CLASS.md @@ -0,0 +1,11 @@ +# FILE_SCHEMA_TEST_CLASS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | [**FILE**](FILE.md) | | [optional] [default to null] +**files** | [**LIST [FILE]**](FILE.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/FORMAT_TEST.md b/samples/client/petstore/eiffel/docs/FORMAT_TEST.md index bb634fd99bf..2e37ac0c6d3 100644 --- a/samples/client/petstore/eiffel/docs/FORMAT_TEST.md +++ b/samples/client/petstore/eiffel/docs/FORMAT_TEST.md @@ -15,7 +15,8 @@ Name | Type | Description | Notes **date** | [**DATE**](DATE.md) | | [default to null] **date_time** | [**DATE_TIME**](DATE_TIME.md) | | [optional] [default to null] **uuid** | [**UUID**](UUID.md) | | [optional] [default to null] -**password** | [**STRING_32**](STRING_32.md) | | [default to null] +**password** | [**STRING**](STRING.md) | | [default to null] +**big_decimal** | **REAL_64** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/HAS_ONLY_READ_ONLY.md b/samples/client/petstore/eiffel/docs/HAS_ONLY_READ_ONLY.md index 3a786e9dcba..100044b32ae 100644 --- a/samples/client/petstore/eiffel/docs/HAS_ONLY_READ_ONLY.md +++ b/samples/client/petstore/eiffel/docs/HAS_ONLY_READ_ONLY.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] -**foo** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**bar** | [**STRING_32**](STRING_32.md) | | [optional] [readonly] [default to null] +**foo** | [**STRING_32**](STRING_32.md) | | [optional] [readonly] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/INLINE_OBJECT.md b/samples/client/petstore/eiffel/docs/INLINE_OBJECT.md new file mode 100644 index 00000000000..4b110463537 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/INLINE_OBJECT.md @@ -0,0 +1,11 @@ +# INLINE_OBJECT + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**STRING_32**](STRING_32.md) | Updated name of the pet | [optional] [default to null] +**status** | [**STRING_32**](STRING_32.md) | Updated status of the pet | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/INLINE_OBJECT_1.md b/samples/client/petstore/eiffel/docs/INLINE_OBJECT_1.md new file mode 100644 index 00000000000..032a4fb4e60 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/INLINE_OBJECT_1.md @@ -0,0 +1,11 @@ +# INLINE_OBJECT_1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_metadata** | [**STRING_32**](STRING_32.md) | Additional data to pass to server | [optional] [default to null] +**file** | [**FILE**](FILE.md) | file to upload | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/MAP_TEST.md b/samples/client/petstore/eiffel/docs/MAP_TEST.md index e55324372cb..8013925a4eb 100644 --- a/samples/client/petstore/eiffel/docs/MAP_TEST.md +++ b/samples/client/petstore/eiffel/docs/MAP_TEST.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**map_map_of_string** | [**STRING_TABLE[STRING_TABLE[STRING_32]]**](STRING_TABLE.md) | | [optional] [default to null] -**map_of_enum_string** | [**STRING_TABLE[STRING_32]**](STRING_32.md) | | [optional] [default to null] +**map_map_of_string** | [**STRING_TABLE [STRING_TABLE [STRING_32]]**](STRING_TABLE.md) | | [optional] [default to null] +**map_of_enum_string** | [**STRING_TABLE [STRING_32]**](STRING_32.md) | | [optional] [default to null] +**direct_map** | **STRING_TABLE [BOOLEAN]** | | [optional] [default to null] +**indirect_map** | **STRING_TABLE [BOOLEAN]** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS.md b/samples/client/petstore/eiffel/docs/MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS.md index e8443e7f8aa..7f1de8c65bf 100644 --- a/samples/client/petstore/eiffel/docs/MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS.md +++ b/samples/client/petstore/eiffel/docs/MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | [**UUID**](UUID.md) | | [optional] [default to null] **date_time** | [**DATE_TIME**](DATE_TIME.md) | | [optional] [default to null] -**map** | [**STRING_TABLE[ANIMAL]**](Animal.md) | | [optional] [default to null] +**map** | [**STRING_TABLE [ANIMAL]**](Animal.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/NAME.md b/samples/client/petstore/eiffel/docs/NAME.md index 7ed9b079b81..c19aab7e3b5 100644 --- a/samples/client/petstore/eiffel/docs/NAME.md +++ b/samples/client/petstore/eiffel/docs/NAME.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **INTEGER_32** | | [default to null] -**snake_case** | **INTEGER_32** | | [optional] [default to null] +**snake_case** | **INTEGER_32** | | [optional] [readonly] [default to null] **property** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] -**var_123_number** | **INTEGER_32** | | [optional] [default to null] +**var_123_number** | **INTEGER_32** | | [optional] [readonly] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/PET_API.md b/samples/client/petstore/eiffel/docs/PET_API.md index 2bd3122ea68..c12e549eeae 100644 --- a/samples/client/petstore/eiffel/docs/PET_API.md +++ b/samples/client/petstore/eiffel/docs/PET_API.md @@ -12,10 +12,11 @@ Feature | HTTP request | Description [**update_pet**](PET_API.md#update_pet) | **Put** /pet | Update an existing pet [**update_pet_with_form**](PET_API.md#update_pet_with_form) | **Post** /pet/{petId} | Updates a pet in the store with form data [**upload_file**](PET_API.md#upload_file) | **Post** /pet/{petId}/uploadImage | uploads an image +[**upload_file_with_required_file**](PET_API.md#upload_file_with_required_file) | **Post** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) # **add_pet** -> add_pet (pet: PET ) +> add_pet (body: PET ) Add a new pet to the store @@ -25,7 +26,7 @@ Add a new pet to the store Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**PET**](PET.md)| Pet object that needs to be added to the store | + **body** | [**PET**](PET.md)| Pet object that needs to be added to the store | ### Return type @@ -53,8 +54,8 @@ Deletes a pet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet_id** | **INTEGER_64**| Pet id to delete | - **api_key** | **STRING_32**| | [optional] + **pet_id** | **INTEGER_64**| Pet id to delete | [default to null] + **api_key** | **STRING_32**| | [optional] [default to null] ### Return type @@ -84,7 +85,7 @@ Multiple status values can be provided with comma separated strings Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**LIST [STRING_32]**](STRING_32.md)| Status values that need to be considered for filter | + **status** | [**LIST [STRING_32]**](STRING_32.md)| Status values that need to be considered for filter | [default to null] ### Return type @@ -114,7 +115,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**LIST [STRING_32]**](STRING_32.md)| Tags to filter by | + **tags** | [**LIST [STRING_32]**](STRING_32.md)| Tags to filter by | [default to null] ### Return type @@ -144,7 +145,7 @@ Returns a single pet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet_id** | **INTEGER_64**| ID of pet to return | + **pet_id** | **INTEGER_64**| ID of pet to return | [default to null] ### Return type @@ -162,7 +163,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_pet** -> update_pet (pet: PET ) +> update_pet (body: PET ) Update an existing pet @@ -172,7 +173,7 @@ Update an existing pet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**PET**](PET.md)| Pet object that needs to be added to the store | + **body** | [**PET**](PET.md)| Pet object that needs to be added to the store | ### Return type @@ -200,7 +201,7 @@ Updates a pet in the store with form data Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet_id** | **INTEGER_64**| ID of pet that needs to be updated | + **pet_id** | **INTEGER_64**| ID of pet that needs to be updated | [default to null] **name** | **STRING_32**| Updated name of the pet | [optional] [default to null] **status** | **STRING_32**| Updated status of the pet | [optional] [default to null] @@ -230,7 +231,7 @@ uploads an image Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet_id** | **INTEGER_64**| ID of pet to update | + **pet_id** | **INTEGER_64**| ID of pet to update | [default to null] **additional_metadata** | **STRING_32**| Additional data to pass to server | [optional] [default to null] **file** | **FILE**| file to upload | [optional] [default to null] @@ -249,3 +250,33 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **upload_file_with_required_file** +> upload_file_with_required_file (pet_id: INTEGER_64 ; required_file: FILE ; additional_metadata: detachable STRING_32 ): detachable API_RESPONSE + + +uploads an image (required) + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pet_id** | **INTEGER_64**| ID of pet to update | [default to null] + **required_file** | **FILE**| file to upload | [default to null] + **additional_metadata** | **STRING_32**| Additional data to pass to server | [optional] [default to null] + +### Return type + +[**API_RESPONSE**](ApiResponse.md) + +### Authorization + +[petstore_auth](../README.md#petstore_auth) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/samples/client/petstore/eiffel/docs/READ_ONLY_FIRST.md b/samples/client/petstore/eiffel/docs/READ_ONLY_FIRST.md index f6732bf11ef..b0ec1c28b3a 100644 --- a/samples/client/petstore/eiffel/docs/READ_ONLY_FIRST.md +++ b/samples/client/petstore/eiffel/docs/READ_ONLY_FIRST.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**bar** | [**STRING_32**](STRING_32.md) | | [optional] [readonly] [default to null] **baz** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/eiffel/docs/STORE_API.md b/samples/client/petstore/eiffel/docs/STORE_API.md index c851de64613..d8c32e82aa2 100644 --- a/samples/client/petstore/eiffel/docs/STORE_API.md +++ b/samples/client/petstore/eiffel/docs/STORE_API.md @@ -23,7 +23,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order_id** | **STRING_32**| ID of the order that needs to be deleted | + **order_id** | **STRING_32**| ID of the order that needs to be deleted | [default to null] ### Return type @@ -41,7 +41,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **inventory** -> inventory : detachable STRING_TABLE[INTEGER_32] +> inventory : detachable STRING_TABLE [INTEGER_32] Returns pet inventories by status @@ -54,7 +54,7 @@ This endpoint does not need any parameter. ### Return type -**STRING_TABLE[INTEGER_32]** +**STRING_TABLE [INTEGER_32]** ### Authorization @@ -80,7 +80,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order_id** | **INTEGER_64**| ID of pet that needs to be fetched | + **order_id** | **INTEGER_64**| ID of pet that needs to be fetched | [default to null] ### Return type @@ -98,7 +98,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **place_order** -> place_order (order: ORDER ): detachable ORDER +> place_order (body: ORDER ): detachable ORDER Place an order for a pet @@ -108,7 +108,7 @@ Place an order for a pet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**ORDER**](ORDER.md)| order placed for purchasing the pet | + **body** | [**ORDER**](ORDER.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/client/petstore/eiffel/docs/TYPE_HOLDER_DEFAULT.md b/samples/client/petstore/eiffel/docs/TYPE_HOLDER_DEFAULT.md new file mode 100644 index 00000000000..0b5e1336a8a --- /dev/null +++ b/samples/client/petstore/eiffel/docs/TYPE_HOLDER_DEFAULT.md @@ -0,0 +1,14 @@ +# TYPE_HOLDER_DEFAULT + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**string_item** | [**STRING_32**](STRING_32.md) | | [default to what] +**number_item** | **REAL_32** | | [default to null] +**integer_item** | **INTEGER_32** | | [default to null] +**bool_item** | **BOOLEAN** | | [default to true] +**array_item** | **LIST [INTEGER_32]** | | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/TYPE_HOLDER_EXAMPLE.md b/samples/client/petstore/eiffel/docs/TYPE_HOLDER_EXAMPLE.md new file mode 100644 index 00000000000..d1f42ee78f6 --- /dev/null +++ b/samples/client/petstore/eiffel/docs/TYPE_HOLDER_EXAMPLE.md @@ -0,0 +1,15 @@ +# TYPE_HOLDER_EXAMPLE + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**string_item** | [**STRING_32**](STRING_32.md) | | [default to null] +**number_item** | **REAL_32** | | [default to null] +**float_item** | **REAL_32** | | [default to null] +**integer_item** | **INTEGER_32** | | [default to null] +**bool_item** | **BOOLEAN** | | [default to null] +**array_item** | **LIST [INTEGER_32]** | | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/docs/USER_API.md b/samples/client/petstore/eiffel/docs/USER_API.md index 686b13789fd..8c3bb38bd92 100644 --- a/samples/client/petstore/eiffel/docs/USER_API.md +++ b/samples/client/petstore/eiffel/docs/USER_API.md @@ -15,7 +15,7 @@ Feature | HTTP request | Description # **create_user** -> create_user (user: USER ) +> create_user (body: USER ) Create user @@ -27,7 +27,7 @@ This can only be done by the logged in user. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**USER**](USER.md)| Created user object | + **body** | [**USER**](USER.md)| Created user object | ### Return type @@ -45,7 +45,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_users_with_array_input** -> create_users_with_array_input (user: LIST [USER] ) +> create_users_with_array_input (body: LIST [USER] ) Creates list of users with given input array @@ -55,7 +55,7 @@ Creates list of users with given input array Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**LIST [USER]**](LIST.md)| List of user object | + **body** | [**LIST [USER]**](User.md)| List of user object | ### Return type @@ -73,7 +73,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_users_with_list_input** -> create_users_with_list_input (user: LIST [USER] ) +> create_users_with_list_input (body: LIST [USER] ) Creates list of users with given input array @@ -83,7 +83,7 @@ Creates list of users with given input array Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**LIST [USER]**](LIST.md)| List of user object | + **body** | [**LIST [USER]**](User.md)| List of user object | ### Return type @@ -113,7 +113,7 @@ This can only be done by the logged in user. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **STRING_32**| The name that needs to be deleted | + **username** | **STRING_32**| The name that needs to be deleted | [default to null] ### Return type @@ -141,8 +141,8 @@ Logs user into the system Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **STRING_32**| The user name for login | - **password** | **STRING_32**| The password for login in clear text | + **username** | **STRING_32**| The user name for login | [default to null] + **password** | **STRING_32**| The password for login in clear text | [default to null] ### Return type @@ -185,7 +185,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_user** -> update_user (username: STRING_32 ; user: USER ) +> update_user (username: STRING_32 ; body: USER ) Updated user @@ -197,8 +197,8 @@ This can only be done by the logged in user. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **STRING_32**| name that need to be deleted | - **user** | [**USER**](USER.md)| Updated user object | + **username** | **STRING_32**| name that need to be deleted | [default to null] + **body** | [**USER**](USER.md)| Updated user object | ### Return type @@ -226,7 +226,7 @@ Get user by user name Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **STRING_32**| The name that needs to be fetched. Use user1 for testing. | + **username** | **STRING_32**| The name that needs to be fetched. Use user1 for testing. | [default to null] ### Return type diff --git a/samples/client/petstore/eiffel/docs/XML_ITEM.md b/samples/client/petstore/eiffel/docs/XML_ITEM.md new file mode 100644 index 00000000000..fd1de63137e --- /dev/null +++ b/samples/client/petstore/eiffel/docs/XML_ITEM.md @@ -0,0 +1,38 @@ +# XML_ITEM + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**attribute_number** | **REAL_32** | | [optional] [default to null] +**attribute_integer** | **INTEGER_32** | | [optional] [default to null] +**attribute_boolean** | **BOOLEAN** | | [optional] [default to null] +**wrapped_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**name_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**name_number** | **REAL_32** | | [optional] [default to null] +**name_integer** | **INTEGER_32** | | [optional] [default to null] +**name_boolean** | **BOOLEAN** | | [optional] [default to null] +**name_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**name_wrapped_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**prefix_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**prefix_number** | **REAL_32** | | [optional] [default to null] +**prefix_integer** | **INTEGER_32** | | [optional] [default to null] +**prefix_boolean** | **BOOLEAN** | | [optional] [default to null] +**prefix_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**prefix_wrapped_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**namespace_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**namespace_number** | **REAL_32** | | [optional] [default to null] +**namespace_integer** | **INTEGER_32** | | [optional] [default to null] +**namespace_boolean** | **BOOLEAN** | | [optional] [default to null] +**namespace_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**namespace_wrapped_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**prefix_ns_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null] +**prefix_ns_number** | **REAL_32** | | [optional] [default to null] +**prefix_ns_integer** | **INTEGER_32** | | [optional] [default to null] +**prefix_ns_boolean** | **BOOLEAN** | | [optional] [default to null] +**prefix_ns_array** | **LIST [INTEGER_32]** | | [optional] [default to null] +**prefix_ns_wrapped_array** | **LIST [INTEGER_32]** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/eiffel/src/api/another_fake_api.e b/samples/client/petstore/eiffel/src/api/another_fake_api.e index 0a912d7f819..d1fe6cccf6a 100644 --- a/samples/client/petstore/eiffel/src/api/another_fake_api.e +++ b/samples/client/petstore/eiffel/src/api/another_fake_api.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,11 +24,11 @@ inherit feature -- API Access - test_special_tags (client: CLIENT): detachable CLIENT - -- To test special tags + call123test_special_tags (body: CLIENT): detachable CLIENT -- To test special tags + -- To test special tags and operation ID starting with number -- - -- argument: client client model (required) + -- argument: body client model (required) -- -- -- Result CLIENT @@ -40,15 +40,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(client) + l_request.set_body(body) l_path := "/another-fake/dummy" - if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Patch", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error diff --git a/samples/client/petstore/eiffel/src/api/fake_api.e b/samples/client/petstore/eiffel/src/api/fake_api.e index 6e7a054c2bd..f5e049fdef2 100644 --- a/samples/client/petstore/eiffel/src/api/fake_api.e +++ b/samples/client/petstore/eiffel/src/api/fake_api.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,36 @@ inherit feature -- API Access + create_xml_item (xml_item: XML_ITEM) + -- creates an XmlItem + -- this route creates an XmlItem + -- + -- argument: xml_item XmlItem Body (required) + -- + -- + require + local + l_path: STRING + l_request: API_CLIENT_REQUEST + l_response: API_CLIENT_RESPONSE + do + reset_error + create l_request + l_request.set_body(xml_item) + l_path := "/fake/create_xml_item" + + + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then + l_request.add_header(l_accept,"Accept"); + end + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) + l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) + if l_response.has_error then + last_error := l_response.error + end + end + fake_outer_boolean_serialize (body: BOOLEAN): detachable BOOLEAN -- -- Test serialization of outer boolean types @@ -44,11 +74,11 @@ feature -- API Access l_path := "/fake/outer/boolean" - if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"*/*">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -59,11 +89,11 @@ feature -- API Access end end - fake_outer_composite_serialize (outer_composite: detachable OUTER_COMPOSITE): detachable OUTER_COMPOSITE + fake_outer_composite_serialize (body: detachable OUTER_COMPOSITE): detachable OUTER_COMPOSITE -- -- Test serialization of object with outer number type -- - -- argument: outer_composite Input composite as post body (optional) + -- argument: body Input composite as post body (optional) -- -- -- Result OUTER_COMPOSITE @@ -75,15 +105,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(outer_composite) + l_request.set_body(body) l_path := "/fake/outer/composite" - if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"*/*">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -114,11 +144,11 @@ feature -- API Access l_path := "/fake/outer/number" - if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"*/*">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -149,11 +179,11 @@ feature -- API Access l_path := "/fake/outer/string" - if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"*/*">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -164,13 +194,11 @@ feature -- API Access end end - test_body_with_query_params (query: STRING_32; user: USER) + test_body_with_file_schema (body: FILE_SCHEMA_TEST_CLASS) -- + -- For this test, the body for this request much reference a schema named `File`. -- - -- - -- argument: query (required) - -- - -- argument: user (required) + -- argument: body (required) -- -- require @@ -181,27 +209,59 @@ feature -- API Access do reset_error create l_request - l_request.set_body(user) - l_path := "/fake/body-with-query-params" - l_request.fill_query_params(api_client.parameter_to_tuple("", "query", query)); + l_request.set_body(body) + l_path := "/fake/body-with-file-schema" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Put", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - test_client_model (client: CLIENT): detachable CLIENT + test_body_with_query_params (query: STRING_32; body: USER) + -- + -- + -- + -- argument: query (required) + -- + -- argument: body (required) + -- + -- + require + local + l_path: STRING + l_request: API_CLIENT_REQUEST + l_response: API_CLIENT_RESPONSE + do + reset_error + create l_request + l_request.set_body(body) + l_path := "/fake/body-with-query-params" + l_request.fill_query_params(api_client.parameter_to_tuple("", "query", query)); + + + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then + l_request.add_header(l_accept,"Accept"); + end + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) + l_response := api_client.call_api (l_path, "Put", l_request, agent serializer, Void) + if l_response.has_error then + last_error := l_response.error + end + end + + test_client_model (body: CLIENT): detachable CLIENT -- To test \"client\" model -- To test \"client\" model -- - -- argument: client client model (required) + -- argument: body client model (required) -- -- -- Result CLIENT @@ -213,15 +273,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(client) + l_request.set_body(body) l_path := "/fake" - if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Patch", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -232,9 +292,9 @@ feature -- API Access end end - test_endpoint_parameters (number: REAL_32; double: REAL_64; pattern_without_delimiter: STRING_32; byte: ARRAY [NATURAL_8]; integer: INTEGER_32; int32: INTEGER_32; int64: INTEGER_64; float: REAL_32; string: STRING_32; binary: FILE; date: DATE; date_time: DATE_TIME; password: STRING_32; callback: STRING_32) - -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + test_endpoint_parameters (number: REAL_32; double: REAL_64; pattern_without_delimiter: STRING_32; byte: ARRAY [NATURAL_8]; integer: INTEGER_32; int32: INTEGER_32; int64: INTEGER_64; float: REAL_32; string: STRING_32; binary: FILE; date: DATE; date_time: DATE_TIME; password: STRING; callback: STRING_32) + -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -- -- argument: number None (required) -- @@ -328,32 +388,32 @@ feature -- API Access l_request.add_form(l_callback,"callback"); end - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type") - l_request.set_auth_names (<<"http_basic_test">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/x-www-form-urlencoded">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"http_basic_test">>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - test_enum_parameters (enum_header_string_array: detachable LIST [STRING_32]; enum_header_string: STRING_32; enum_query_string_array: detachable LIST [STRING_32]; enum_query_string: STRING_32; enum_query_integer: INTEGER_32; enum_query_double: REAL_64; enum_form_string_array: LIST [STRING_32]; enum_form_string: STRING_32) + test_enum_parameters (enum_header_string_array: detachable LIST [STRING_32]; enum_header_string: STRING_32; enum_query_string_array: detachable LIST [STRING_32]; enum_query_string: STRING_32; enum_query_integer: INTEGER_32; enum_query_double: REAL_64; enum_form_string_array: detachable LIST [STRING_32]; enum_form_string: STRING_32) -- To test enum parameters -- To test enum parameters -- - -- argument: enum_header_string_array Header parameter enum test (string array) (optional) + -- argument: enum_header_string_array Header parameter enum test (string array) (optional, default to null) -- -- argument: enum_header_string Header parameter enum test (string) (optional, default to -efg) -- - -- argument: enum_query_string_array Query parameter enum test (string array) (optional) + -- argument: enum_query_string_array Query parameter enum test (string array) (optional, default to null) -- -- argument: enum_query_string Query parameter enum test (string) (optional, default to -efg) -- - -- argument: enum_query_integer Query parameter enum test (double) (optional) + -- argument: enum_query_integer Query parameter enum test (double) (optional, default to null) -- - -- argument: enum_query_double Query parameter enum test (double) (optional) + -- argument: enum_query_double Query parameter enum test (double) (optional, default to null) -- -- argument: enum_form_string_array Form parameter enum test (string array) (optional, default to $) -- @@ -388,22 +448,32 @@ feature -- API Access l_request.add_form(l_enum_form_string,"enum_form_string"); end - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/x-www-form-urlencoded">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Get", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - test_inline_additional_properties (request_body: STRING_TABLE[STRING_32]) - -- test inline additionalProperties + test_group_parameters (required_string_group: INTEGER_32; required_boolean_group: BOOLEAN; required_int64_group: INTEGER_64; string_group: INTEGER_32; boolean_group: BOOLEAN; int64_group: INTEGER_64) + -- Fake endpoint to test group parameters (optional) + -- Fake endpoint to test group parameters (optional) -- + -- argument: required_string_group Required String in group parameters (required) -- - -- argument: request_body request body (required) + -- argument: required_boolean_group Required Boolean in group parameters (required) + -- + -- argument: required_int64_group Required Integer in group parameters (required) + -- + -- argument: string_group String in group parameters (optional, default to null) + -- + -- argument: boolean_group Boolean in group parameters (optional, default to null) + -- + -- argument: int64_group Integer in group parameters (optional, default to null) -- -- require @@ -414,15 +484,55 @@ feature -- API Access do reset_error create l_request - l_request.set_body(request_body) + + l_path := "/fake" + l_request.fill_query_params(api_client.parameter_to_tuple("", "required_string_group", required_string_group)); + l_request.fill_query_params(api_client.parameter_to_tuple("", "required_int64_group", required_int64_group)); + l_request.fill_query_params(api_client.parameter_to_tuple("", "string_group", string_group)); + l_request.fill_query_params(api_client.parameter_to_tuple("", "int64_group", int64_group)); + + if attached required_boolean_group as l_required_boolean_group then + l_request.add_header(l_required_boolean_group.out,"required_boolean_group"); + end + if attached boolean_group as l_boolean_group then + l_request.add_header(l_boolean_group.out,"boolean_group"); + end + + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then + l_request.add_header(l_accept,"Accept"); + end + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) + l_response := api_client.call_api (l_path, "Delete", l_request, agent serializer, Void) + if l_response.has_error then + last_error := l_response.error + end + end + + test_inline_additional_properties (param: STRING_TABLE [STRING_32]) + -- test inline additionalProperties + -- + -- + -- argument: param request body (required) + -- + -- + require + local + l_path: STRING + l_request: API_CLIENT_REQUEST + l_response: API_CLIENT_RESPONSE + do + reset_error + create l_request + l_request.set_body(param) l_path := "/fake/inline-additionalProperties" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -456,16 +566,59 @@ feature -- API Access l_request.add_form(l_param2,"param2"); end - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/x-www-form-urlencoded">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Get", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end + test_query_parameter_collection_format (pipe: LIST [STRING_32]; ioutil: LIST [STRING_32]; http: LIST [STRING_32]; url: LIST [STRING_32]; context: LIST [STRING_32]) + -- + -- To test the collection format in query parameters + -- + -- argument: pipe (required) + -- + -- argument: ioutil (required) + -- + -- argument: http (required) + -- + -- argument: url (required) + -- + -- argument: context (required) + -- + -- + require + local + l_path: STRING + l_request: API_CLIENT_REQUEST + l_response: API_CLIENT_RESPONSE + do + reset_error + create l_request + + l_path := "/fake/test-query-paramters" + l_request.fill_query_params(api_client.parameter_to_tuple("csv", "pipe", pipe)); + l_request.fill_query_params(api_client.parameter_to_tuple("csv", "ioutil", ioutil)); + l_request.fill_query_params(api_client.parameter_to_tuple("ssv", "http", http)); + l_request.fill_query_params(api_client.parameter_to_tuple("csv", "url", url)); + l_request.fill_query_params(api_client.parameter_to_tuple("multi", "context", context)); + + + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then + l_request.add_header(l_accept,"Accept"); + end + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) + l_response := api_client.call_api (l_path, "Put", l_request, agent serializer, Void) + if l_response.has_error then + last_error := l_response.error + end + end + end diff --git a/samples/client/petstore/eiffel/src/api/fake_classname_tags123_api.e b/samples/client/petstore/eiffel/src/api/fake_classname_tags123_api.e index de7f29df8af..86f7ec204e1 100644 --- a/samples/client/petstore/eiffel/src/api/fake_classname_tags123_api.e +++ b/samples/client/petstore/eiffel/src/api/fake_classname_tags123_api.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,11 +24,11 @@ inherit feature -- API Access - test_classname (client: CLIENT): detachable CLIENT + test_classname (body: CLIENT): detachable CLIENT -- To test class name in snake case -- To test class name in snake case -- - -- argument: client client model (required) + -- argument: body client model (required) -- -- -- Result CLIENT @@ -40,15 +40,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(client) + l_request.set_body(body) l_path := "/fake_classname_test" - if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type") - l_request.set_auth_names (<<"api_key_query">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"api_key_query">>) l_response := api_client.call_api (l_path, "Patch", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error diff --git a/samples/client/petstore/eiffel/src/api/pet_api.e b/samples/client/petstore/eiffel/src/api/pet_api.e index 17a482737ed..4658b5b9402 100644 --- a/samples/client/petstore/eiffel/src/api/pet_api.e +++ b/samples/client/petstore/eiffel/src/api/pet_api.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,11 +24,11 @@ inherit feature -- API Access - add_pet (pet: PET) + add_pet (body: PET) -- Add a new pet to the store -- -- - -- argument: pet Pet object that needs to be added to the store (required) + -- argument: body Pet object that needs to be added to the store (required) -- -- require @@ -39,15 +39,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(pet) + l_request.set_body(body) l_path := "/pet" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json", "application/xml">>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json", "application/xml">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -60,7 +60,7 @@ feature -- API Access -- -- argument: pet_id Pet id to delete (required) -- - -- argument: api_key (optional) + -- argument: api_key (optional, default to null) -- -- require @@ -79,11 +79,11 @@ feature -- API Access l_request.add_header(l_api_key.out,"api_key"); end - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Delete", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -111,11 +111,11 @@ feature -- API Access l_request.fill_query_params(api_client.parameter_to_tuple("csv", "status", status)); - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -147,11 +147,11 @@ feature -- API Access l_request.fill_query_params(api_client.parameter_to_tuple("csv", "tags", tags)); - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -183,11 +183,11 @@ feature -- API Access l_path.replace_substring_all ("{"+"petId"+"}", api_client.url_encode (pet_id.out)) - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<"api_key">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"api_key">>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -198,11 +198,11 @@ feature -- API Access end end - update_pet (pet: PET) + update_pet (body: PET) -- Update an existing pet -- -- - -- argument: pet Pet object that needs to be added to the store (required) + -- argument: body Pet object that needs to be added to the store (required) -- -- require @@ -213,15 +213,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(pet) + l_request.set_body(body) l_path := "/pet" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/json", "application/xml">>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/json", "application/xml">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Put", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -258,11 +258,11 @@ feature -- API Access l_request.add_form(l_status,"status"); end - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"application/x-www-form-urlencoded">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -300,11 +300,57 @@ feature -- API Access l_request.add_form(l_file,"file"); end - if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<"multipart/form-data">>),"Content-Type") - l_request.set_auth_names (<<"petstore_auth">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"multipart/form-data">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) + l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) + if l_response.has_error then + last_error := l_response.error + elseif attached { API_RESPONSE } l_response.data ({ API_RESPONSE }) as l_data then + Result := l_data + else + create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]") + end + end + + upload_file_with_required_file (pet_id: INTEGER_64; required_file: FILE; additional_metadata: STRING_32): detachable API_RESPONSE + -- uploads an image (required) + -- + -- + -- argument: pet_id ID of pet to update (required) + -- + -- argument: required_file file to upload (required) + -- + -- argument: additional_metadata Additional data to pass to server (optional, default to null) + -- + -- + -- Result API_RESPONSE + require + local + l_path: STRING + l_request: API_CLIENT_REQUEST + l_response: API_CLIENT_RESPONSE + do + reset_error + create l_request + + l_path := "/fake/{petId}/uploadImageWithRequiredFile" + l_path.replace_substring_all ("{"+"petId"+"}", api_client.url_encode (pet_id.out)) + + if attached additional_metadata as l_additional_metadata then + l_request.add_form(l_additional_metadata,"additionalMetadata"); + end + if attached required_file as l_required_file then + l_request.add_form(l_required_file,"requiredFile"); + end + + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/json">>) as l_accept then + l_request.add_header(l_accept,"Accept"); + end + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<"multipart/form-data">>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"petstore_auth">>) l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error diff --git a/samples/client/petstore/eiffel/src/api/store_api.e b/samples/client/petstore/eiffel/src/api/store_api.e index 2f0854b3b39..40f9ce6bd74 100644 --- a/samples/client/petstore/eiffel/src/api/store_api.e +++ b/samples/client/petstore/eiffel/src/api/store_api.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,23 +44,23 @@ feature -- API Access l_path.replace_substring_all ("{"+"order_id"+"}", api_client.url_encode (order_id.out)) - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Delete", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - inventory : detachable STRING_TABLE[INTEGER_32] + inventory : detachable STRING_TABLE [INTEGER_32] -- Returns pet inventories by status -- Returns a map of status codes to quantities -- -- - -- Result STRING_TABLE[INTEGER_32] + -- Result STRING_TABLE [INTEGER_32] require local l_path: STRING @@ -73,15 +73,15 @@ feature -- API Access l_path := "/store/inventory" - if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<"api_key">>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<"api_key">>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error - elseif attached { STRING_TABLE[INTEGER_32] } l_response.data ({ STRING_TABLE[INTEGER_32] }) as l_data then + elseif attached { STRING_TABLE [INTEGER_32] } l_response.data ({ STRING_TABLE [INTEGER_32] }) as l_data then Result := l_data else create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]") @@ -111,11 +111,11 @@ feature -- API Access l_path.replace_substring_all ("{"+"order_id"+"}", api_client.url_encode (order_id.out)) - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -126,11 +126,11 @@ feature -- API Access end end - place_order (order: ORDER): detachable ORDER + place_order (body: ORDER): detachable ORDER -- Place an order for a pet -- -- - -- argument: order order placed for purchasing the pet (required) + -- argument: body order placed for purchasing the pet (required) -- -- -- Result ORDER @@ -142,15 +142,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(order) + l_request.set_body(body) l_path := "/store/order" - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error diff --git a/samples/client/petstore/eiffel/src/api/user_api.e b/samples/client/petstore/eiffel/src/api/user_api.e index 3b5703b40cf..7b053e21680 100644 --- a/samples/client/petstore/eiffel/src/api/user_api.e +++ b/samples/client/petstore/eiffel/src/api/user_api.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,11 +24,11 @@ inherit feature -- API Access - create_user (user: USER) + create_user (body: USER) -- Create user -- This can only be done by the logged in user. -- - -- argument: user Created user object (required) + -- argument: body Created user object (required) -- -- require @@ -39,26 +39,26 @@ feature -- API Access do reset_error create l_request - l_request.set_body(user) + l_request.set_body(body) l_path := "/user" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - create_users_with_array_input (user: LIST [USER]) + create_users_with_array_input (body: LIST [USER]) -- Creates list of users with given input array -- -- - -- argument: user List of user object (required) + -- argument: body List of user object (required) -- -- require @@ -69,26 +69,26 @@ feature -- API Access do reset_error create l_request - l_request.set_body(user) + l_request.set_body(body) l_path := "/user/createWithArray" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - create_users_with_list_input (user: LIST [USER]) + create_users_with_list_input (body: LIST [USER]) -- Creates list of users with given input array -- -- - -- argument: user List of user object (required) + -- argument: body List of user object (required) -- -- require @@ -99,15 +99,15 @@ feature -- API Access do reset_error create l_request - l_request.set_body(user) + l_request.set_body(body) l_path := "/user/createWithList" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -134,11 +134,11 @@ feature -- API Access l_path.replace_substring_all ("{"+"username"+"}", api_client.url_encode (username.out)) - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Delete", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -169,11 +169,11 @@ feature -- API Access l_request.fill_query_params(api_client.parameter_to_tuple("", "password", password)); - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error @@ -201,24 +201,24 @@ feature -- API Access l_path := "/user/logout" - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Get", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error end end - update_user (username: STRING_32; user: USER) + update_user (username: STRING_32; body: USER) -- Updated user -- This can only be done by the logged in user. -- -- argument: username name that need to be deleted (required) -- - -- argument: user Updated user object (required) + -- argument: body Updated user object (required) -- -- require @@ -229,16 +229,16 @@ feature -- API Access do reset_error create l_request - l_request.set_body(user) + l_request.set_body(body) l_path := "/user/{username}" l_path.replace_substring_all ("{"+"username"+"}", api_client.url_encode (username.out)) - if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<>>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Put", l_request, agent serializer, Void) if l_response.has_error then last_error := l_response.error @@ -266,11 +266,11 @@ feature -- API Access l_path.replace_substring_all ("{"+"username"+"}", api_client.url_encode (username.out)) - if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then + if attached {STRING} api_client.select_header_accept ({ARRAY [STRING]}<<"application/xml", "application/json">>) as l_accept then l_request.add_header(l_accept,"Accept"); end - l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type") - l_request.set_auth_names (<<>>) + l_request.add_header(api_client.select_header_content_type ({ARRAY [STRING]}<<>>),"Content-Type") + l_request.set_auth_names ({ARRAY [STRING]}<<>>) l_response := api_client.call_api (l_path, "Get", l_request, Void, agent deserializer) if l_response.has_error then last_error := l_response.error diff --git a/samples/client/petstore/eiffel/src/api_client.e b/samples/client/petstore/eiffel/src/api_client.e index 6397c4293d6..068e94e68a8 100644 --- a/samples/client/petstore/eiffel/src/api_client.e +++ b/samples/client/petstore/eiffel/src/api_client.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -248,7 +248,8 @@ feature -- Query Parameter Helpers -- dateTime string date-time As defined by date-time - RFC3339 Result := date_time.date.debug_output elseif attached {STRING_32} a_param as str_32 then - Result := str_32 + -- TODO check if this is a good convertion. + Result := str_32.to_string_8 elseif attached {STRING_8} a_param as str_8 then Result := str_8 else @@ -435,18 +436,18 @@ feature -- HTTP client: call api end end - add_header_params (a_content_executor:HTTP_CLIENT_REQUEST_CONTEXT; a_header_params: STRING_TABLE [STRING]) + add_header_params (a_content_executor:HTTP_CLIENT_REQUEST_CONTEXT; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- Set header parameters `a_header_params' to the request context executor `a_content_executor', including default headers. do -- headers across a_header_params as ic loop - a_content_executor.add_header (ic.key.as_string_8, ic.item) + a_content_executor.add_header (ic.key.to_string_8, ic.item) end -- default headers across default_header_map as ic loop if not a_header_params.has (ic.key) then - a_content_executor.add_header (ic.key.as_string_8, ic.item) + a_content_executor.add_header (ic.key.to_string_8, ic.item) end end end @@ -499,7 +500,7 @@ feature -- HTTP client: Change Element feature {NONE} -- Implementation - default_header_map: STRING_TABLE [STRING] + default_header_map: STRING_TABLE [READABLE_STRING_8] -- default header map. http_session: detachable HTTP_CLIENT_SESSION diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_any_type.e b/samples/client/petstore/eiffel/src/domain/additional_properties_any_type.e new file mode 100644 index 00000000000..413eb5ab6ec --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_any_type.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_ANY_TYPE + +inherit + + + STRING_TABLE [ANY] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_ANY_TYPE%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_array.e b/samples/client/petstore/eiffel/src/domain/additional_properties_array.e new file mode 100644 index 00000000000..5d49d52ed0b --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_array.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_ARRAY + +inherit + + + STRING_TABLE [LIST [ANY]] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_ARRAY%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_boolean.e b/samples/client/petstore/eiffel/src/domain/additional_properties_boolean.e new file mode 100644 index 00000000000..6db7a313b67 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_boolean.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_BOOLEAN + +inherit + + + STRING_TABLE [BOOLEAN] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_BOOLEAN%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_class.e b/samples/client/petstore/eiffel/src/domain/additional_properties_class.e index f11b85fd007..d490f63e3fe 100644 --- a/samples/client/petstore/eiffel/src/domain/additional_properties_class.e +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_class.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,50 +14,135 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ADDITIONAL_PROPERTIES_CLASS -inherit - ANY - redefine - out - end feature --Access - map_property: detachable STRING_TABLE[STRING_32] + map_string: detachable STRING_TABLE [STRING_32] - map_of_map_property: detachable STRING_TABLE[STRING_TABLE[STRING_32]] + map_number: detachable STRING_TABLE [REAL_32] + + map_integer: detachable STRING_TABLE [INTEGER_32] + + map_boolean: detachable STRING_TABLE [BOOLEAN] + + map_array_integer: detachable STRING_TABLE [LIST [INTEGER_32]] + + map_array_anytype: detachable STRING_TABLE [LIST [ANY]] + + map_map_string: detachable STRING_TABLE [STRING_TABLE [STRING_32]] + + map_map_anytype: detachable STRING_TABLE [STRING_TABLE [ANY]] + + anytype_1: detachable ANY + + anytype_2: detachable ANY + + anytype_3: detachable ANY feature -- Change Element - set_map_property (a_name: like map_property) - -- Set 'map_property' with 'a_name'. + set_map_string (a_name: like map_string) + -- Set 'map_string' with 'a_name'. do - map_property := a_name + map_string := a_name ensure - map_property_set: map_property = a_name + map_string_set: map_string = a_name end - set_map_of_map_property (a_name: like map_of_map_property) - -- Set 'map_of_map_property' with 'a_name'. + set_map_number (a_name: like map_number) + -- Set 'map_number' with 'a_name'. do - map_of_map_property := a_name + map_number := a_name ensure - map_of_map_property_set: map_of_map_property = a_name + map_number_set: map_number = a_name + end + + set_map_integer (a_name: like map_integer) + -- Set 'map_integer' with 'a_name'. + do + map_integer := a_name + ensure + map_integer_set: map_integer = a_name + end + + set_map_boolean (a_name: like map_boolean) + -- Set 'map_boolean' with 'a_name'. + do + map_boolean := a_name + ensure + map_boolean_set: map_boolean = a_name + end + + set_map_array_integer (a_name: like map_array_integer) + -- Set 'map_array_integer' with 'a_name'. + do + map_array_integer := a_name + ensure + map_array_integer_set: map_array_integer = a_name + end + + set_map_array_anytype (a_name: like map_array_anytype) + -- Set 'map_array_anytype' with 'a_name'. + do + map_array_anytype := a_name + ensure + map_array_anytype_set: map_array_anytype = a_name + end + + set_map_map_string (a_name: like map_map_string) + -- Set 'map_map_string' with 'a_name'. + do + map_map_string := a_name + ensure + map_map_string_set: map_map_string = a_name + end + + set_map_map_anytype (a_name: like map_map_anytype) + -- Set 'map_map_anytype' with 'a_name'. + do + map_map_anytype := a_name + ensure + map_map_anytype_set: map_map_anytype = a_name + end + + set_anytype_1 (a_name: like anytype_1) + -- Set 'anytype_1' with 'a_name'. + do + anytype_1 := a_name + ensure + anytype_1_set: anytype_1 = a_name + end + + set_anytype_2 (a_name: like anytype_2) + -- Set 'anytype_2' with 'a_name'. + do + anytype_2 := a_name + ensure + anytype_2_set: anytype_2 = a_name + end + + set_anytype_3 (a_name: like anytype_3) + -- Set 'anytype_3' with 'a_name'. + do + anytype_3 := a_name + ensure + anytype_3_set: anytype_3 = a_name end feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty Result.append("%Nclass ADDITIONAL_PROPERTIES_CLASS%N") - if attached map_property as l_map_property then - Result.append ("%Nmap_property:") - across l_map_property as ic loop + if attached map_string as l_map_string then + Result.append ("%Nmap_string:") + across l_map_string as ic loop Result.append ("%N") Result.append ("key:") Result.append (ic.key.out) @@ -67,9 +152,9 @@ feature -- Change Element Result.append ("%N") end end - if attached map_of_map_property as l_map_of_map_property then - Result.append ("%Nmap_of_map_property:") - across l_map_of_map_property as ic loop + if attached map_number as l_map_number then + Result.append ("%Nmap_number:") + across l_map_number as ic loop Result.append ("%N") Result.append ("key:") Result.append (ic.key.out) @@ -79,6 +164,93 @@ feature -- Change Element Result.append ("%N") end end + if attached map_integer as l_map_integer then + Result.append ("%Nmap_integer:") + across l_map_integer as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached map_boolean as l_map_boolean then + Result.append ("%Nmap_boolean:") + across l_map_boolean as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached map_array_integer as l_map_array_integer then + Result.append ("%Nmap_array_integer:") + across l_map_array_integer as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached map_array_anytype as l_map_array_anytype then + Result.append ("%Nmap_array_anytype:") + across l_map_array_anytype as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached map_map_string as l_map_map_string then + Result.append ("%Nmap_map_string:") + across l_map_map_string as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached map_map_anytype as l_map_map_anytype then + Result.append ("%Nmap_map_anytype:") + across l_map_map_anytype as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached anytype_1 as l_anytype_1 then + Result.append ("%Nanytype_1:") + Result.append (l_anytype_1.out) + Result.append ("%N") + end + if attached anytype_2 as l_anytype_2 then + Result.append ("%Nanytype_2:") + Result.append (l_anytype_2.out) + Result.append ("%N") + end + if attached anytype_3 as l_anytype_3 then + Result.append ("%Nanytype_3:") + Result.append (l_anytype_3.out) + Result.append ("%N") + end end end diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_integer.e b/samples/client/petstore/eiffel/src/domain/additional_properties_integer.e new file mode 100644 index 00000000000..a268ffd076f --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_integer.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_INTEGER + +inherit + + + STRING_TABLE [INTEGER_32] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_INTEGER%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_number.e b/samples/client/petstore/eiffel/src/domain/additional_properties_number.e new file mode 100644 index 00000000000..e95a0ef54b1 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_number.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_NUMBER + +inherit + + + STRING_TABLE [REAL_32] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_NUMBER%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_object.e b/samples/client/petstore/eiffel/src/domain/additional_properties_object.e new file mode 100644 index 00000000000..1fba29efac6 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_object.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_OBJECT + +inherit + + + STRING_TABLE [STRING_TABLE [ANY]] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_OBJECT%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/additional_properties_string.e b/samples/client/petstore/eiffel/src/domain/additional_properties_string.e new file mode 100644 index 00000000000..374a20c0df0 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/additional_properties_string.e @@ -0,0 +1,54 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class ADDITIONAL_PROPERTIES_STRING + +inherit + + + STRING_TABLE [STRING_32] + +feature --Access + + name: detachable STRING_32 + + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_) + Result.append("%Nclass ADDITIONAL_PROPERTIES_STRING%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/animal.e b/samples/client/petstore/eiffel/src/domain/animal.e index 72fa473c5a0..17b61788ba9 100644 --- a/samples/client/petstore/eiffel/src/domain/animal.e +++ b/samples/client/petstore/eiffel/src/domain/animal.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ANIMAL -inherit - ANY - redefine - out - end feature --Access @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/api_response.e b/samples/client/petstore/eiffel/src/domain/api_response.e index 8b3e64ff046..7b472878c8a 100644 --- a/samples/client/petstore/eiffel/src/domain/api_response.e +++ b/samples/client/petstore/eiffel/src/domain/api_response.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class API_RESPONSE -inherit - ANY - redefine - out - end feature --Access - code: INTEGER_32 - + code: INTEGER_32 + type: detachable STRING_32 message: detachable STRING_32 @@ -60,7 +55,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/array_of_array_of_number_only.e b/samples/client/petstore/eiffel/src/domain/array_of_array_of_number_only.e index b261e583d68..dbeb760d65b 100644 --- a/samples/client/petstore/eiffel/src/domain/array_of_array_of_number_only.e +++ b/samples/client/petstore/eiffel/src/domain/array_of_array_of_number_only.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ARRAY_OF_ARRAY_OF_NUMBER_ONLY -inherit - ANY - redefine - out - end feature --Access @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/array_of_number_only.e b/samples/client/petstore/eiffel/src/domain/array_of_number_only.e index 5a37891c500..bbfd33b7ec8 100644 --- a/samples/client/petstore/eiffel/src/domain/array_of_number_only.e +++ b/samples/client/petstore/eiffel/src/domain/array_of_number_only.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ARRAY_OF_NUMBER_ONLY -inherit - ANY - redefine - out - end feature --Access - array_number: LIST [REAL_32] - + array_number: detachable LIST [REAL_32] + feature -- Change Element @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/array_test.e b/samples/client/petstore/eiffel/src/domain/array_test.e index a0c54fcf6fe..0f7ddef9d67 100644 --- a/samples/client/petstore/eiffel/src/domain/array_test.e +++ b/samples/client/petstore/eiffel/src/domain/array_test.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ARRAY_TEST -inherit - ANY - redefine - out - end feature --Access @@ -60,7 +55,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/big_cat.e b/samples/client/petstore/eiffel/src/domain/big_cat.e new file mode 100644 index 00000000000..d13dae39e07 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/big_cat.e @@ -0,0 +1,57 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class BIG_CAT + +inherit + + + CAT + rename + output as out_cat + end + +feature --Access + + kind: detachable STRING_32 + + +feature -- Change Element + + set_kind (a_name: like kind) + -- Set 'kind' with 'a_name'. + do + kind := a_name + ensure + kind_set: kind = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append(out_cat) + Result.append("%Nclass BIG_CAT%N") + if attached kind as l_kind then + Result.append ("%Nkind:") + Result.append (l_kind.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/animal_farm.e b/samples/client/petstore/eiffel/src/domain/big_cat_all_of.e similarity index 56% rename from samples/client/petstore/eiffel/src/domain/animal_farm.e rename to samples/client/petstore/eiffel/src/domain/big_cat_all_of.e index 47f42895406..ecce706115d 100644 --- a/samples/client/petstore/eiffel/src/domain/animal_farm.e +++ b/samples/client/petstore/eiffel/src/domain/big_cat_all_of.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,41 +12,39 @@ note date: "$Date$" revision: "$Revision$" EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" -class ANIMAL_FARM +class BIG_CAT_ALL_OF -inherit - ANY - redefine - out - select - out - end - ARRAYED_LIST [ANIMAL] - rename - out as out_, - is_equal as is_equal_, - copy as copy_ - select - is_equal_, - copy_ - end feature --Access + kind: detachable STRING_32 + feature -- Change Element + set_kind (a_name: like kind) + -- Set 'kind' with 'a_name'. + do + kind := a_name + ensure + kind_set: kind = a_name + end + feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty - Result.append(out_) - Result.append("%Nclass ANIMAL_FARM%N") + Result.append("%Nclass BIG_CAT_ALL_OF%N") + if attached kind as l_kind then + Result.append ("%Nkind:") + Result.append (l_kind.out) + Result.append ("%N") + end end end diff --git a/samples/client/petstore/eiffel/src/domain/capitalization.e b/samples/client/petstore/eiffel/src/domain/capitalization.e index b5b4c5b238a..ae0320c7b3f 100644 --- a/samples/client/petstore/eiffel/src/domain/capitalization.e +++ b/samples/client/petstore/eiffel/src/domain/capitalization.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class CAPITALIZATION -inherit - ANY - redefine - out - end feature --Access @@ -90,7 +85,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/cat.e b/samples/client/petstore/eiffel/src/domain/cat.e index c041e4d8db5..a3636e4c234 100644 --- a/samples/client/petstore/eiffel/src/domain/cat.e +++ b/samples/client/petstore/eiffel/src/domain/cat.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,27 +16,16 @@ class CAT inherit - ANY - redefine - out - select - out - end - ANIMAL + ANIMAL rename - out as out_animal, - is_equal as is_equal_animal, - copy as copy_animal - select - is_equal_animal, - copy_animal - end + output as out_animal + end feature --Access - declawed: BOOLEAN - + declawed: BOOLEAN + feature -- Change Element @@ -51,7 +40,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/cat_all_of.e b/samples/client/petstore/eiffel/src/domain/cat_all_of.e new file mode 100644 index 00000000000..9fa9496d724 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/cat_all_of.e @@ -0,0 +1,51 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class CAT_ALL_OF + + + + +feature --Access + + declawed: BOOLEAN + + +feature -- Change Element + + set_declawed (a_name: like declawed) + -- Set 'declawed' with 'a_name'. + do + declawed := a_name + ensure + declawed_set: declawed = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append("%Nclass CAT_ALL_OF%N") + if attached declawed as l_declawed then + Result.append ("%Ndeclawed:") + Result.append (l_declawed.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/category.e b/samples/client/petstore/eiffel/src/domain/category.e index 8bd714c7261..a8c0c0b6db9 100644 --- a/samples/client/petstore/eiffel/src/domain/category.e +++ b/samples/client/petstore/eiffel/src/domain/category.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class CATEGORY -inherit - ANY - redefine - out - end feature --Access - id: INTEGER_64 - + id: INTEGER_64 + name: detachable STRING_32 @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/class_model.e b/samples/client/petstore/eiffel/src/domain/class_model.e index 711a9a56844..d437d46be25 100644 --- a/samples/client/petstore/eiffel/src/domain/class_model.e +++ b/samples/client/petstore/eiffel/src/domain/class_model.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class CLASS_MODEL -inherit - ANY - redefine - out - end feature --Access @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/client.e b/samples/client/petstore/eiffel/src/domain/client.e index 666e391e516..d024106ea2a 100644 --- a/samples/client/petstore/eiffel/src/domain/client.e +++ b/samples/client/petstore/eiffel/src/domain/client.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class CLIENT -inherit - ANY - redefine - out - end feature --Access @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/dog.e b/samples/client/petstore/eiffel/src/domain/dog.e index 120d8b86f9c..460b6582f00 100644 --- a/samples/client/petstore/eiffel/src/domain/dog.e +++ b/samples/client/petstore/eiffel/src/domain/dog.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,22 +16,11 @@ class DOG inherit - ANY - redefine - out - select - out - end - ANIMAL + ANIMAL rename - out as out_animal, - is_equal as is_equal_animal, - copy as copy_animal - select - is_equal_animal, - copy_animal - end + output as out_animal + end feature --Access @@ -51,7 +40,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/dog_all_of.e b/samples/client/petstore/eiffel/src/domain/dog_all_of.e new file mode 100644 index 00000000000..502271357cd --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/dog_all_of.e @@ -0,0 +1,51 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class DOG_ALL_OF + + + + +feature --Access + + breed: detachable STRING_32 + + +feature -- Change Element + + set_breed (a_name: like breed) + -- Set 'breed' with 'a_name'. + do + breed := a_name + ensure + breed_set: breed = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append("%Nclass DOG_ALL_OF%N") + if attached breed as l_breed then + Result.append ("%Nbreed:") + Result.append (l_breed.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/enum_arrays.e b/samples/client/petstore/eiffel/src/domain/enum_arrays.e index ddb0fd5594b..e5bbb4c8acf 100644 --- a/samples/client/petstore/eiffel/src/domain/enum_arrays.e +++ b/samples/client/petstore/eiffel/src/domain/enum_arrays.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ENUM_ARRAYS -inherit - ANY - redefine - out - end feature --Access @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/enum_class.e b/samples/client/petstore/eiffel/src/domain/enum_class.e index 79a0e952b2f..2b37b2f8ff5 100644 --- a/samples/client/petstore/eiffel/src/domain/enum_class.e +++ b/samples/client/petstore/eiffel/src/domain/enum_class.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/eiffel/src/domain/enum_test.e b/samples/client/petstore/eiffel/src/domain/enum_test.e index 87cf363f701..d8509714290 100644 --- a/samples/client/petstore/eiffel/src/domain/enum_test.e +++ b/samples/client/petstore/eiffel/src/domain/enum_test.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ENUM_TEST -inherit - ANY - redefine - out - end feature --Access @@ -28,10 +23,10 @@ feature --Access enum_string_required: detachable STRING_32 - enum_integer: INTEGER_32 - - enum_number: REAL_64 - + enum_integer: INTEGER_32 + + enum_number: REAL_64 + outer_enum: detachable OUTER_ENUM @@ -80,7 +75,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/file_schema_test_class.e b/samples/client/petstore/eiffel/src/domain/file_schema_test_class.e new file mode 100644 index 00000000000..3a81ec46fe4 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/file_schema_test_class.e @@ -0,0 +1,68 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class FILE_SCHEMA_TEST_CLASS + + + + +feature --Access + + file: detachable FILE + + files: detachable LIST [FILE] + + +feature -- Change Element + + set_file (a_name: like file) + -- Set 'file' with 'a_name'. + do + file := a_name + ensure + file_set: file = a_name + end + + set_files (a_name: like files) + -- Set 'files' with 'a_name'. + do + files := a_name + ensure + files_set: files = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append("%Nclass FILE_SCHEMA_TEST_CLASS%N") + if attached file as l_file then + Result.append ("%Nfile:") + Result.append (l_file.out) + Result.append ("%N") + end + if attached files as l_files then + across l_files as ic loop + Result.append ("%N files:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/format_test.e b/samples/client/petstore/eiffel/src/domain/format_test.e index 52d9167188f..032bf971cf5 100644 --- a/samples/client/petstore/eiffel/src/domain/format_test.e +++ b/samples/client/petstore/eiffel/src/domain/format_test.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,28 +14,23 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class FORMAT_TEST -inherit - ANY - redefine - out - end feature --Access - integer: INTEGER_32 - - int32: INTEGER_32 - - int64: INTEGER_64 - - number: REAL_32 - - float: REAL_32 - - double: REAL_64 - + integer: INTEGER_32 + + int32: INTEGER_32 + + int64: INTEGER_64 + + number: REAL_32 + + float: REAL_32 + + double: REAL_64 + string: detachable STRING_32 byte: detachable ARRAY [NATURAL_8] @@ -48,8 +43,10 @@ feature --Access uuid: detachable UUID - password: detachable STRING_32 + password: detachable STRING + big_decimal: REAL_64 + feature -- Change Element @@ -157,10 +154,18 @@ feature -- Change Element password_set: password = a_name end + set_big_decimal (a_name: like big_decimal) + -- Set 'big_decimal' with 'a_name'. + do + big_decimal := a_name + ensure + big_decimal_set: big_decimal = a_name + end + feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty @@ -230,6 +235,11 @@ feature -- Change Element Result.append (l_password.out) Result.append ("%N") end + if attached big_decimal as l_big_decimal then + Result.append ("%Nbig_decimal:") + Result.append (l_big_decimal.out) + Result.append ("%N") + end end end diff --git a/samples/client/petstore/eiffel/src/domain/has_only_read_only.e b/samples/client/petstore/eiffel/src/domain/has_only_read_only.e index 27cf1ba49d0..13cf058c116 100644 --- a/samples/client/petstore/eiffel/src/domain/has_only_read_only.e +++ b/samples/client/petstore/eiffel/src/domain/has_only_read_only.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class HAS_ONLY_READ_ONLY -inherit - ANY - redefine - out - end feature --Access @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/inline_object.e b/samples/client/petstore/eiffel/src/domain/inline_object.e new file mode 100644 index 00000000000..df498d7170b --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/inline_object.e @@ -0,0 +1,71 @@ +note + description:"[ + OpenAPI Petstore + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class INLINE_OBJECT + +inherit + + ANY + redefine + out + end + + +feature --Access + + name: detachable STRING_32 + -- Updated name of the pet + status: detachable STRING_32 + -- Updated status of the pet + +feature -- Change Element + + set_name (a_name: like name) + -- Set 'name' with 'a_name'. + do + name := a_name + ensure + name_set: name = a_name + end + + set_status (a_name: like status) + -- Set 'status' with 'a_name'. + do + status := a_name + ensure + status_set: status = a_name + end + + + feature -- Status Report + + out: STRING + -- + do + create Result.make_empty + Result.append("%Nclass INLINE_OBJECT%N") + if attached name as l_name then + Result.append ("%Nname:") + Result.append (l_name.out) + Result.append ("%N") + end + if attached status as l_status then + Result.append ("%Nstatus:") + Result.append (l_status.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/inline_object_1.e b/samples/client/petstore/eiffel/src/domain/inline_object_1.e new file mode 100644 index 00000000000..037f91f5b38 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/inline_object_1.e @@ -0,0 +1,71 @@ +note + description:"[ + OpenAPI Petstore + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class INLINE_OBJECT_1 + +inherit + + ANY + redefine + out + end + + +feature --Access + + additional_metadata: detachable STRING_32 + -- Additional data to pass to server + file: detachable FILE + -- file to upload + +feature -- Change Element + + set_additional_metadata (a_name: like additional_metadata) + -- Set 'additional_metadata' with 'a_name'. + do + additional_metadata := a_name + ensure + additional_metadata_set: additional_metadata = a_name + end + + set_file (a_name: like file) + -- Set 'file' with 'a_name'. + do + file := a_name + ensure + file_set: file = a_name + end + + + feature -- Status Report + + out: STRING + -- + do + create Result.make_empty + Result.append("%Nclass INLINE_OBJECT_1%N") + if attached additional_metadata as l_additional_metadata then + Result.append ("%Nadditional_metadata:") + Result.append (l_additional_metadata.out) + Result.append ("%N") + end + if attached file as l_file then + Result.append ("%Nfile:") + Result.append (l_file.out) + Result.append ("%N") + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/map_test.e b/samples/client/petstore/eiffel/src/domain/map_test.e index 0e7cf934f01..3dd7d0e6a80 100644 --- a/samples/client/petstore/eiffel/src/domain/map_test.e +++ b/samples/client/petstore/eiffel/src/domain/map_test.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,20 +14,19 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class MAP_TEST -inherit - ANY - redefine - out - end feature --Access - map_map_of_string: detachable STRING_TABLE[STRING_TABLE[STRING_32]] + map_map_of_string: detachable STRING_TABLE [STRING_TABLE [STRING_32]] - map_of_enum_string: detachable STRING_TABLE[STRING_32] + map_of_enum_string: detachable STRING_TABLE [STRING_32] + direct_map: detachable STRING_TABLE [BOOLEAN] + + indirect_map: detachable STRING_TABLE [BOOLEAN] + feature -- Change Element @@ -47,10 +46,26 @@ feature -- Change Element map_of_enum_string_set: map_of_enum_string = a_name end + set_direct_map (a_name: like direct_map) + -- Set 'direct_map' with 'a_name'. + do + direct_map := a_name + ensure + direct_map_set: direct_map = a_name + end + + set_indirect_map (a_name: like indirect_map) + -- Set 'indirect_map' with 'a_name'. + do + indirect_map := a_name + ensure + indirect_map_set: indirect_map = a_name + end + feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty @@ -79,6 +94,30 @@ feature -- Change Element Result.append ("%N") end end + if attached direct_map as l_direct_map then + Result.append ("%Ndirect_map:") + across l_direct_map as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached indirect_map as l_indirect_map then + Result.append ("%Nindirect_map:") + across l_indirect_map as ic loop + Result.append ("%N") + Result.append ("key:") + Result.append (ic.key.out) + Result.append (" - ") + Result.append ("val:") + Result.append (ic.item.out) + Result.append ("%N") + end + end end end diff --git a/samples/client/petstore/eiffel/src/domain/mixed_properties_and_additional_properties_class.e b/samples/client/petstore/eiffel/src/domain/mixed_properties_and_additional_properties_class.e index 2bb76decc07..e9e02fba768 100644 --- a/samples/client/petstore/eiffel/src/domain/mixed_properties_and_additional_properties_class.e +++ b/samples/client/petstore/eiffel/src/domain/mixed_properties_and_additional_properties_class.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS -inherit - ANY - redefine - out - end feature --Access @@ -28,7 +23,7 @@ feature --Access date_time: detachable DATE_TIME - map: detachable STRING_TABLE[ANIMAL] + map: detachable STRING_TABLE [ANIMAL] feature -- Change Element @@ -60,7 +55,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/model_200_response.e b/samples/client/petstore/eiffel/src/domain/model_200_response.e index a365d406b58..8686866bddf 100644 --- a/samples/client/petstore/eiffel/src/domain/model_200_response.e +++ b/samples/client/petstore/eiffel/src/domain/model_200_response.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class MODEL_200_RESPONSE -inherit - ANY - redefine - out - end feature --Access - name: INTEGER_32 - + name: INTEGER_32 + var_class: detachable STRING_32 @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/name.e b/samples/client/petstore/eiffel/src/domain/name.e index 2d1c49cc063..c379e3fea17 100644 --- a/samples/client/petstore/eiffel/src/domain/name.e +++ b/samples/client/petstore/eiffel/src/domain/name.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,24 +14,19 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class NAME -inherit - ANY - redefine - out - end feature --Access - name: INTEGER_32 - - snake_case: INTEGER_32 - + name: INTEGER_32 + + snake_case: INTEGER_32 + property: detachable STRING_32 - var_123_number: INTEGER_32 - + var_123_number: INTEGER_32 + feature -- Change Element @@ -70,7 +65,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/number_only.e b/samples/client/petstore/eiffel/src/domain/number_only.e index 270cbcbea3c..caa59c0d4d7 100644 --- a/samples/client/petstore/eiffel/src/domain/number_only.e +++ b/samples/client/petstore/eiffel/src/domain/number_only.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class NUMBER_ONLY -inherit - ANY - redefine - out - end feature --Access - just_number: REAL_32 - + just_number: REAL_32 + feature -- Change Element @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/order.e b/samples/client/petstore/eiffel/src/domain/order.e index 0da3b9349f9..4cb8f84d4bd 100644 --- a/samples/client/petstore/eiffel/src/domain/order.e +++ b/samples/client/petstore/eiffel/src/domain/order.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,28 +14,23 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class ORDER -inherit - ANY - redefine - out - end feature --Access - id: INTEGER_64 - - pet_id: INTEGER_64 - - quantity: INTEGER_32 - + id: INTEGER_64 + + pet_id: INTEGER_64 + + quantity: INTEGER_32 + ship_date: detachable DATE_TIME status: detachable STRING_32 -- Order Status - complete: BOOLEAN - + complete: BOOLEAN + feature -- Change Element @@ -90,7 +85,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/outer_boolean.e b/samples/client/petstore/eiffel/src/domain/outer_boolean.e deleted file mode 100644 index 5d91d2d537c..00000000000 --- a/samples/client/petstore/eiffel/src/domain/outer_boolean.e +++ /dev/null @@ -1,40 +0,0 @@ -note - description:"[ - Swagger Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - - NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - ]" - date: "$Date$" - revision: "$Revision$" - EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri" - -class OUTER_BOOLEAN - -inherit - - ANY - redefine - out - end - - -feature --Access - - -feature -- Change Element - - - feature -- Status Report - - out: STRING - -- - do - create Result.make_empty - Result.append("%Nclass OUTER_BOOLEAN%N") - end -end diff --git a/samples/client/petstore/eiffel/src/domain/outer_composite.e b/samples/client/petstore/eiffel/src/domain/outer_composite.e index 845476ed151..b14418c2dcb 100644 --- a/samples/client/petstore/eiffel/src/domain/outer_composite.e +++ b/samples/client/petstore/eiffel/src/domain/outer_composite.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,22 +14,17 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class OUTER_COMPOSITE -inherit - ANY - redefine - out - end feature --Access - my_number: REAL_32 - + my_number: REAL_32 + my_string: detachable STRING_32 - my_boolean: BOOLEAN - + my_boolean: BOOLEAN + feature -- Change Element @@ -60,7 +55,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/outer_enum.e b/samples/client/petstore/eiffel/src/domain/outer_enum.e index c88e2c561a0..6e93a0d41dc 100644 --- a/samples/client/petstore/eiffel/src/domain/outer_enum.e +++ b/samples/client/petstore/eiffel/src/domain/outer_enum.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/eiffel/src/domain/outer_number.e b/samples/client/petstore/eiffel/src/domain/outer_number.e deleted file mode 100644 index def73da66b4..00000000000 --- a/samples/client/petstore/eiffel/src/domain/outer_number.e +++ /dev/null @@ -1,40 +0,0 @@ -note - description:"[ - Swagger Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - - NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - ]" - date: "$Date$" - revision: "$Revision$" - EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri" - -class OUTER_NUMBER - -inherit - - ANY - redefine - out - end - - -feature --Access - - -feature -- Change Element - - - feature -- Status Report - - out: STRING - -- - do - create Result.make_empty - Result.append("%Nclass OUTER_NUMBER%N") - end -end diff --git a/samples/client/petstore/eiffel/src/domain/outer_string.e b/samples/client/petstore/eiffel/src/domain/outer_string.e deleted file mode 100644 index b69b0886d3f..00000000000 --- a/samples/client/petstore/eiffel/src/domain/outer_string.e +++ /dev/null @@ -1,40 +0,0 @@ -note - description:"[ - Swagger Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - - NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - ]" - date: "$Date$" - revision: "$Revision$" - EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri" - -class OUTER_STRING - -inherit - - ANY - redefine - out - end - - -feature --Access - - -feature -- Change Element - - - feature -- Status Report - - out: STRING - -- - do - create Result.make_empty - Result.append("%Nclass OUTER_STRING%N") - end -end diff --git a/samples/client/petstore/eiffel/src/domain/pet.e b/samples/client/petstore/eiffel/src/domain/pet.e index 86d845c22e8..3c4483919ed 100644 --- a/samples/client/petstore/eiffel/src/domain/pet.e +++ b/samples/client/petstore/eiffel/src/domain/pet.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class PET -inherit - ANY - redefine - out - end feature --Access - id: INTEGER_64 - + id: INTEGER_64 + category: detachable CATEGORY name: detachable STRING_32 @@ -90,7 +85,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/read_only_first.e b/samples/client/petstore/eiffel/src/domain/read_only_first.e index 65d41d07fac..62a24fda664 100644 --- a/samples/client/petstore/eiffel/src/domain/read_only_first.e +++ b/samples/client/petstore/eiffel/src/domain/read_only_first.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,12 +14,7 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class READ_ONLY_FIRST -inherit - ANY - redefine - out - end feature --Access @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/return.e b/samples/client/petstore/eiffel/src/domain/return.e index 2e08c0f53d9..f4c793617f7 100644 --- a/samples/client/petstore/eiffel/src/domain/return.e +++ b/samples/client/petstore/eiffel/src/domain/return.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class RETURN -inherit - ANY - redefine - out - end feature --Access - return: INTEGER_32 - + return: INTEGER_32 + feature -- Change Element @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/special_model_name.e b/samples/client/petstore/eiffel/src/domain/special_model_name.e index 90e30e783f2..fa5a794d0a9 100644 --- a/samples/client/petstore/eiffel/src/domain/special_model_name.e +++ b/samples/client/petstore/eiffel/src/domain/special_model_name.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class SPECIAL_MODEL_NAME -inherit - ANY - redefine - out - end feature --Access - special_property_name: INTEGER_64 - + special_property_name: INTEGER_64 + feature -- Change Element @@ -40,7 +35,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/tag.e b/samples/client/petstore/eiffel/src/domain/tag.e index f62729bed5d..87e13305812 100644 --- a/samples/client/petstore/eiffel/src/domain/tag.e +++ b/samples/client/petstore/eiffel/src/domain/tag.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class TAG -inherit - ANY - redefine - out - end feature --Access - id: INTEGER_64 - + id: INTEGER_64 + name: detachable STRING_32 @@ -50,7 +45,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/type_holder_default.e b/samples/client/petstore/eiffel/src/domain/type_holder_default.e new file mode 100644 index 00000000000..9c2904fb829 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/type_holder_default.e @@ -0,0 +1,113 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class TYPE_HOLDER_DEFAULT + + + + +feature --Access + + string_item: detachable STRING_32 + + number_item: REAL_32 + + integer_item: INTEGER_32 + + bool_item: BOOLEAN + + array_item: detachable LIST [INTEGER_32] + + +feature -- Change Element + + set_string_item (a_name: like string_item) + -- Set 'string_item' with 'a_name'. + do + string_item := a_name + ensure + string_item_set: string_item = a_name + end + + set_number_item (a_name: like number_item) + -- Set 'number_item' with 'a_name'. + do + number_item := a_name + ensure + number_item_set: number_item = a_name + end + + set_integer_item (a_name: like integer_item) + -- Set 'integer_item' with 'a_name'. + do + integer_item := a_name + ensure + integer_item_set: integer_item = a_name + end + + set_bool_item (a_name: like bool_item) + -- Set 'bool_item' with 'a_name'. + do + bool_item := a_name + ensure + bool_item_set: bool_item = a_name + end + + set_array_item (a_name: like array_item) + -- Set 'array_item' with 'a_name'. + do + array_item := a_name + ensure + array_item_set: array_item = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append("%Nclass TYPE_HOLDER_DEFAULT%N") + if attached string_item as l_string_item then + Result.append ("%Nstring_item:") + Result.append (l_string_item.out) + Result.append ("%N") + end + if attached number_item as l_number_item then + Result.append ("%Nnumber_item:") + Result.append (l_number_item.out) + Result.append ("%N") + end + if attached integer_item as l_integer_item then + Result.append ("%Ninteger_item:") + Result.append (l_integer_item.out) + Result.append ("%N") + end + if attached bool_item as l_bool_item then + Result.append ("%Nbool_item:") + Result.append (l_bool_item.out) + Result.append ("%N") + end + if attached array_item as l_array_item then + across l_array_item as ic loop + Result.append ("%N array_item:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/type_holder_example.e b/samples/client/petstore/eiffel/src/domain/type_holder_example.e new file mode 100644 index 00000000000..472afcbb40a --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/type_holder_example.e @@ -0,0 +1,128 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class TYPE_HOLDER_EXAMPLE + + + + +feature --Access + + string_item: detachable STRING_32 + + number_item: REAL_32 + + float_item: REAL_32 + + integer_item: INTEGER_32 + + bool_item: BOOLEAN + + array_item: detachable LIST [INTEGER_32] + + +feature -- Change Element + + set_string_item (a_name: like string_item) + -- Set 'string_item' with 'a_name'. + do + string_item := a_name + ensure + string_item_set: string_item = a_name + end + + set_number_item (a_name: like number_item) + -- Set 'number_item' with 'a_name'. + do + number_item := a_name + ensure + number_item_set: number_item = a_name + end + + set_float_item (a_name: like float_item) + -- Set 'float_item' with 'a_name'. + do + float_item := a_name + ensure + float_item_set: float_item = a_name + end + + set_integer_item (a_name: like integer_item) + -- Set 'integer_item' with 'a_name'. + do + integer_item := a_name + ensure + integer_item_set: integer_item = a_name + end + + set_bool_item (a_name: like bool_item) + -- Set 'bool_item' with 'a_name'. + do + bool_item := a_name + ensure + bool_item_set: bool_item = a_name + end + + set_array_item (a_name: like array_item) + -- Set 'array_item' with 'a_name'. + do + array_item := a_name + ensure + array_item_set: array_item = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append("%Nclass TYPE_HOLDER_EXAMPLE%N") + if attached string_item as l_string_item then + Result.append ("%Nstring_item:") + Result.append (l_string_item.out) + Result.append ("%N") + end + if attached number_item as l_number_item then + Result.append ("%Nnumber_item:") + Result.append (l_number_item.out) + Result.append ("%N") + end + if attached float_item as l_float_item then + Result.append ("%Nfloat_item:") + Result.append (l_float_item.out) + Result.append ("%N") + end + if attached integer_item as l_integer_item then + Result.append ("%Ninteger_item:") + Result.append (l_integer_item.out) + Result.append ("%N") + end + if attached bool_item as l_bool_item then + Result.append ("%Nbool_item:") + Result.append (l_bool_item.out) + Result.append ("%N") + end + if attached array_item as l_array_item then + across l_array_item as ic loop + Result.append ("%N array_item:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/domain/user.e b/samples/client/petstore/eiffel/src/domain/user.e index 07586c1b55d..ece6c8ab5c2 100644 --- a/samples/client/petstore/eiffel/src/domain/user.e +++ b/samples/client/petstore/eiffel/src/domain/user.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,18 +14,13 @@ note EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" class USER -inherit - ANY - redefine - out - end feature --Access - id: INTEGER_64 - + id: INTEGER_64 + username: detachable STRING_32 first_name: detachable STRING_32 @@ -38,8 +33,8 @@ feature --Access phone: detachable STRING_32 - user_status: INTEGER_32 - -- User Status + user_status: INTEGER_32 + -- User Status feature -- Change Element @@ -110,7 +105,7 @@ feature -- Change Element feature -- Status Report - out: STRING + output: STRING -- do create Result.make_empty diff --git a/samples/client/petstore/eiffel/src/domain/xml_item.e b/samples/client/petstore/eiffel/src/domain/xml_item.e new file mode 100644 index 00000000000..22ecea8ea79 --- /dev/null +++ b/samples/client/petstore/eiffel/src/domain/xml_item.e @@ -0,0 +1,489 @@ +note + description:"[ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 + + + NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + ]" + date: "$Date$" + revision: "$Revision$" + EIS:"Eiffel openapi generator", "src=https://openapi-generator.tech", "protocol=uri" +class XML_ITEM + + + + +feature --Access + + attribute_string: detachable STRING_32 + + attribute_number: REAL_32 + + attribute_integer: INTEGER_32 + + attribute_boolean: BOOLEAN + + wrapped_array: detachable LIST [INTEGER_32] + + name_string: detachable STRING_32 + + name_number: REAL_32 + + name_integer: INTEGER_32 + + name_boolean: BOOLEAN + + name_array: detachable LIST [INTEGER_32] + + name_wrapped_array: detachable LIST [INTEGER_32] + + prefix_string: detachable STRING_32 + + prefix_number: REAL_32 + + prefix_integer: INTEGER_32 + + prefix_boolean: BOOLEAN + + prefix_array: detachable LIST [INTEGER_32] + + prefix_wrapped_array: detachable LIST [INTEGER_32] + + namespace_string: detachable STRING_32 + + namespace_number: REAL_32 + + namespace_integer: INTEGER_32 + + namespace_boolean: BOOLEAN + + namespace_array: detachable LIST [INTEGER_32] + + namespace_wrapped_array: detachable LIST [INTEGER_32] + + prefix_ns_string: detachable STRING_32 + + prefix_ns_number: REAL_32 + + prefix_ns_integer: INTEGER_32 + + prefix_ns_boolean: BOOLEAN + + prefix_ns_array: detachable LIST [INTEGER_32] + + prefix_ns_wrapped_array: detachable LIST [INTEGER_32] + + +feature -- Change Element + + set_attribute_string (a_name: like attribute_string) + -- Set 'attribute_string' with 'a_name'. + do + attribute_string := a_name + ensure + attribute_string_set: attribute_string = a_name + end + + set_attribute_number (a_name: like attribute_number) + -- Set 'attribute_number' with 'a_name'. + do + attribute_number := a_name + ensure + attribute_number_set: attribute_number = a_name + end + + set_attribute_integer (a_name: like attribute_integer) + -- Set 'attribute_integer' with 'a_name'. + do + attribute_integer := a_name + ensure + attribute_integer_set: attribute_integer = a_name + end + + set_attribute_boolean (a_name: like attribute_boolean) + -- Set 'attribute_boolean' with 'a_name'. + do + attribute_boolean := a_name + ensure + attribute_boolean_set: attribute_boolean = a_name + end + + set_wrapped_array (a_name: like wrapped_array) + -- Set 'wrapped_array' with 'a_name'. + do + wrapped_array := a_name + ensure + wrapped_array_set: wrapped_array = a_name + end + + set_name_string (a_name: like name_string) + -- Set 'name_string' with 'a_name'. + do + name_string := a_name + ensure + name_string_set: name_string = a_name + end + + set_name_number (a_name: like name_number) + -- Set 'name_number' with 'a_name'. + do + name_number := a_name + ensure + name_number_set: name_number = a_name + end + + set_name_integer (a_name: like name_integer) + -- Set 'name_integer' with 'a_name'. + do + name_integer := a_name + ensure + name_integer_set: name_integer = a_name + end + + set_name_boolean (a_name: like name_boolean) + -- Set 'name_boolean' with 'a_name'. + do + name_boolean := a_name + ensure + name_boolean_set: name_boolean = a_name + end + + set_name_array (a_name: like name_array) + -- Set 'name_array' with 'a_name'. + do + name_array := a_name + ensure + name_array_set: name_array = a_name + end + + set_name_wrapped_array (a_name: like name_wrapped_array) + -- Set 'name_wrapped_array' with 'a_name'. + do + name_wrapped_array := a_name + ensure + name_wrapped_array_set: name_wrapped_array = a_name + end + + set_prefix_string (a_name: like prefix_string) + -- Set 'prefix_string' with 'a_name'. + do + prefix_string := a_name + ensure + prefix_string_set: prefix_string = a_name + end + + set_prefix_number (a_name: like prefix_number) + -- Set 'prefix_number' with 'a_name'. + do + prefix_number := a_name + ensure + prefix_number_set: prefix_number = a_name + end + + set_prefix_integer (a_name: like prefix_integer) + -- Set 'prefix_integer' with 'a_name'. + do + prefix_integer := a_name + ensure + prefix_integer_set: prefix_integer = a_name + end + + set_prefix_boolean (a_name: like prefix_boolean) + -- Set 'prefix_boolean' with 'a_name'. + do + prefix_boolean := a_name + ensure + prefix_boolean_set: prefix_boolean = a_name + end + + set_prefix_array (a_name: like prefix_array) + -- Set 'prefix_array' with 'a_name'. + do + prefix_array := a_name + ensure + prefix_array_set: prefix_array = a_name + end + + set_prefix_wrapped_array (a_name: like prefix_wrapped_array) + -- Set 'prefix_wrapped_array' with 'a_name'. + do + prefix_wrapped_array := a_name + ensure + prefix_wrapped_array_set: prefix_wrapped_array = a_name + end + + set_namespace_string (a_name: like namespace_string) + -- Set 'namespace_string' with 'a_name'. + do + namespace_string := a_name + ensure + namespace_string_set: namespace_string = a_name + end + + set_namespace_number (a_name: like namespace_number) + -- Set 'namespace_number' with 'a_name'. + do + namespace_number := a_name + ensure + namespace_number_set: namespace_number = a_name + end + + set_namespace_integer (a_name: like namespace_integer) + -- Set 'namespace_integer' with 'a_name'. + do + namespace_integer := a_name + ensure + namespace_integer_set: namespace_integer = a_name + end + + set_namespace_boolean (a_name: like namespace_boolean) + -- Set 'namespace_boolean' with 'a_name'. + do + namespace_boolean := a_name + ensure + namespace_boolean_set: namespace_boolean = a_name + end + + set_namespace_array (a_name: like namespace_array) + -- Set 'namespace_array' with 'a_name'. + do + namespace_array := a_name + ensure + namespace_array_set: namespace_array = a_name + end + + set_namespace_wrapped_array (a_name: like namespace_wrapped_array) + -- Set 'namespace_wrapped_array' with 'a_name'. + do + namespace_wrapped_array := a_name + ensure + namespace_wrapped_array_set: namespace_wrapped_array = a_name + end + + set_prefix_ns_string (a_name: like prefix_ns_string) + -- Set 'prefix_ns_string' with 'a_name'. + do + prefix_ns_string := a_name + ensure + prefix_ns_string_set: prefix_ns_string = a_name + end + + set_prefix_ns_number (a_name: like prefix_ns_number) + -- Set 'prefix_ns_number' with 'a_name'. + do + prefix_ns_number := a_name + ensure + prefix_ns_number_set: prefix_ns_number = a_name + end + + set_prefix_ns_integer (a_name: like prefix_ns_integer) + -- Set 'prefix_ns_integer' with 'a_name'. + do + prefix_ns_integer := a_name + ensure + prefix_ns_integer_set: prefix_ns_integer = a_name + end + + set_prefix_ns_boolean (a_name: like prefix_ns_boolean) + -- Set 'prefix_ns_boolean' with 'a_name'. + do + prefix_ns_boolean := a_name + ensure + prefix_ns_boolean_set: prefix_ns_boolean = a_name + end + + set_prefix_ns_array (a_name: like prefix_ns_array) + -- Set 'prefix_ns_array' with 'a_name'. + do + prefix_ns_array := a_name + ensure + prefix_ns_array_set: prefix_ns_array = a_name + end + + set_prefix_ns_wrapped_array (a_name: like prefix_ns_wrapped_array) + -- Set 'prefix_ns_wrapped_array' with 'a_name'. + do + prefix_ns_wrapped_array := a_name + ensure + prefix_ns_wrapped_array_set: prefix_ns_wrapped_array = a_name + end + + + feature -- Status Report + + output: STRING + -- + do + create Result.make_empty + Result.append("%Nclass XML_ITEM%N") + if attached attribute_string as l_attribute_string then + Result.append ("%Nattribute_string:") + Result.append (l_attribute_string.out) + Result.append ("%N") + end + if attached attribute_number as l_attribute_number then + Result.append ("%Nattribute_number:") + Result.append (l_attribute_number.out) + Result.append ("%N") + end + if attached attribute_integer as l_attribute_integer then + Result.append ("%Nattribute_integer:") + Result.append (l_attribute_integer.out) + Result.append ("%N") + end + if attached attribute_boolean as l_attribute_boolean then + Result.append ("%Nattribute_boolean:") + Result.append (l_attribute_boolean.out) + Result.append ("%N") + end + if attached wrapped_array as l_wrapped_array then + across l_wrapped_array as ic loop + Result.append ("%N wrapped_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached name_string as l_name_string then + Result.append ("%Nname_string:") + Result.append (l_name_string.out) + Result.append ("%N") + end + if attached name_number as l_name_number then + Result.append ("%Nname_number:") + Result.append (l_name_number.out) + Result.append ("%N") + end + if attached name_integer as l_name_integer then + Result.append ("%Nname_integer:") + Result.append (l_name_integer.out) + Result.append ("%N") + end + if attached name_boolean as l_name_boolean then + Result.append ("%Nname_boolean:") + Result.append (l_name_boolean.out) + Result.append ("%N") + end + if attached name_array as l_name_array then + across l_name_array as ic loop + Result.append ("%N name_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached name_wrapped_array as l_name_wrapped_array then + across l_name_wrapped_array as ic loop + Result.append ("%N name_wrapped_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached prefix_string as l_prefix_string then + Result.append ("%Nprefix_string:") + Result.append (l_prefix_string.out) + Result.append ("%N") + end + if attached prefix_number as l_prefix_number then + Result.append ("%Nprefix_number:") + Result.append (l_prefix_number.out) + Result.append ("%N") + end + if attached prefix_integer as l_prefix_integer then + Result.append ("%Nprefix_integer:") + Result.append (l_prefix_integer.out) + Result.append ("%N") + end + if attached prefix_boolean as l_prefix_boolean then + Result.append ("%Nprefix_boolean:") + Result.append (l_prefix_boolean.out) + Result.append ("%N") + end + if attached prefix_array as l_prefix_array then + across l_prefix_array as ic loop + Result.append ("%N prefix_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached prefix_wrapped_array as l_prefix_wrapped_array then + across l_prefix_wrapped_array as ic loop + Result.append ("%N prefix_wrapped_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached namespace_string as l_namespace_string then + Result.append ("%Nnamespace_string:") + Result.append (l_namespace_string.out) + Result.append ("%N") + end + if attached namespace_number as l_namespace_number then + Result.append ("%Nnamespace_number:") + Result.append (l_namespace_number.out) + Result.append ("%N") + end + if attached namespace_integer as l_namespace_integer then + Result.append ("%Nnamespace_integer:") + Result.append (l_namespace_integer.out) + Result.append ("%N") + end + if attached namespace_boolean as l_namespace_boolean then + Result.append ("%Nnamespace_boolean:") + Result.append (l_namespace_boolean.out) + Result.append ("%N") + end + if attached namespace_array as l_namespace_array then + across l_namespace_array as ic loop + Result.append ("%N namespace_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached namespace_wrapped_array as l_namespace_wrapped_array then + across l_namespace_wrapped_array as ic loop + Result.append ("%N namespace_wrapped_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached prefix_ns_string as l_prefix_ns_string then + Result.append ("%Nprefix_ns_string:") + Result.append (l_prefix_ns_string.out) + Result.append ("%N") + end + if attached prefix_ns_number as l_prefix_ns_number then + Result.append ("%Nprefix_ns_number:") + Result.append (l_prefix_ns_number.out) + Result.append ("%N") + end + if attached prefix_ns_integer as l_prefix_ns_integer then + Result.append ("%Nprefix_ns_integer:") + Result.append (l_prefix_ns_integer.out) + Result.append ("%N") + end + if attached prefix_ns_boolean as l_prefix_ns_boolean then + Result.append ("%Nprefix_ns_boolean:") + Result.append (l_prefix_ns_boolean.out) + Result.append ("%N") + end + if attached prefix_ns_array as l_prefix_ns_array then + across l_prefix_ns_array as ic loop + Result.append ("%N prefix_ns_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + if attached prefix_ns_wrapped_array as l_prefix_ns_wrapped_array then + across l_prefix_ns_wrapped_array as ic loop + Result.append ("%N prefix_ns_wrapped_array:") + Result.append (ic.item.out) + Result.append ("%N") + end + end + end +end + + diff --git a/samples/client/petstore/eiffel/src/framework/api_client_request.e b/samples/client/petstore/eiffel/src/framework/api_client_request.e index fcd2a09d141..816e717e611 100644 --- a/samples/client/petstore/eiffel/src/framework/api_client_request.e +++ b/samples/client/petstore/eiffel/src/framework/api_client_request.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/eiffel/src/framework/api_client_response.e b/samples/client/petstore/eiffel/src/framework/api_client_response.e index cf0978b2579..c8094f4e1f6 100644 --- a/samples/client/petstore/eiffel/src/framework/api_client_response.e +++ b/samples/client/petstore/eiffel/src/framework/api_client_response.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ create feature {NONE} -- Initialization - make (a_response: detachable HTTP_CLIENT_RESPONSE; a_error: detachable API_ERROR; a_custom_deserializer: detachable FUNCTION [TUPLE [STRING, STRING, TYPE [detachable ANY]], detachable ANY]) + make (a_response: detachable HTTP_CLIENT_RESPONSE; a_error: detachable API_ERROR; a_custom_deserializer: detachable FUNCTION [TUPLE [READABLE_STRING_8, READABLE_STRING_8, TYPE [detachable ANY]], detachable ANY]) do response := a_response error := a_error @@ -36,6 +36,7 @@ feature -- Access end status: INTEGER + -- Status code of the response. do if attached response as l_response then Result := l_response.status @@ -45,7 +46,7 @@ feature -- Access feature -- Data data (a_type: TYPE [detachable ANY]): detachable ANY - -- Data representation of the HTTP Response + -- Data representation of the HTTP Response. do if attached response as l_response and then @@ -67,8 +68,7 @@ feature {NONE} -- Implementation response: detachable HTTP_CLIENT_RESPONSE -- Low level response returned by the API call. - deserializer: detachable FUNCTION [TUPLE [STRING, STRING, TYPE [detachable ANY]], detachable ANY] - -- function to map a response body with a given content type to the target - -- in the domain model. + deserializer: detachable FUNCTION [TUPLE [READABLE_STRING_8, READABLE_STRING_8, TYPE [detachable ANY]], detachable ANY] + -- Function to map a response body with a given content type to the target in the domain model. end diff --git a/samples/client/petstore/eiffel/src/framework/api_error.e b/samples/client/petstore/eiffel/src/framework/api_error.e index ca89aae7f7a..69871d5261c 100644 --- a/samples/client/petstore/eiffel/src/framework/api_error.e +++ b/samples/client/petstore/eiffel/src/framework/api_error.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/eiffel/src/framework/api_i.e b/samples/client/petstore/eiffel/src/framework/api_i.e index ca0a45cd41c..bf1ea896687 100644 --- a/samples/client/petstore/eiffel/src/framework/api_i.e +++ b/samples/client/petstore/eiffel/src/framework/api_i.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -37,12 +37,12 @@ feature {NONE} -- Initialization feature -- Status Report last_error: detachable API_ERROR - -- last error if any from the API call. + -- Last error if any from the API call. feature -- Error reset_error - -- reset `last_error' to void. + -- Reset `last_error' to void. do last_error := Void end diff --git a/samples/client/petstore/eiffel/src/framework/auth/api_key_auth.e b/samples/client/petstore/eiffel/src/framework/auth/api_key_auth.e index 4087386d601..b56ac2d0974 100644 --- a/samples/client/petstore/eiffel/src/framework/auth/api_key_auth.e +++ b/samples/client/petstore/eiffel/src/framework/auth/api_key_auth.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -58,7 +58,7 @@ feature -- Change Element feature -- Access - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params(a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- . local l_value: STRING_32 diff --git a/samples/client/petstore/eiffel/src/framework/auth/authentication.e b/samples/client/petstore/eiffel/src/framework/auth/authentication.e index b53248ae6e3..8632413daf4 100644 --- a/samples/client/petstore/eiffel/src/framework/auth/authentication.e +++ b/samples/client/petstore/eiffel/src/framework/auth/authentication.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ deferred class feature -- Access - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params(a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- Apply authentication settings to header and query params. -- `a_query_params' List of query parameters. -- `a_header_params' Map of header parameters. diff --git a/samples/client/petstore/eiffel/src/framework/auth/http_basic_auth.e b/samples/client/petstore/eiffel/src/framework/auth/http_basic_auth.e index 3fd7664bcec..531384f2671 100644 --- a/samples/client/petstore/eiffel/src/framework/auth/http_basic_auth.e +++ b/samples/client/petstore/eiffel/src/framework/auth/http_basic_auth.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,10 +23,10 @@ inherit feature -- Access user_name: detachable STRING_32 - -- user name. + -- User name. password: detachable STRING_32 - -- password. + -- Password. feature -- Element Change @@ -48,14 +48,15 @@ feature -- Element Change feature -- Access - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params(a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- . do if attached user_name as l_username and then attached password as l_password then - a_header_params.force ("Basic " + (create {BASE64}).encoded_string (l_username + ":" + l_password) , "Authorization") + -- TODO check if this convertion it's ok. + a_header_params.force ("Basic " + (create {BASE64}).encoded_string (l_username.to_string_8 + ":" + l_password.to_string_8) , "Authorization") end end diff --git a/samples/client/petstore/eiffel/src/framework/auth/oauth.e b/samples/client/petstore/eiffel/src/framework/auth/oauth.e index 66b4ba5c3c5..9d65636b460 100644 --- a/samples/client/petstore/eiffel/src/framework/auth/oauth.e +++ b/samples/client/petstore/eiffel/src/framework/auth/oauth.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,11 +33,12 @@ feature -- Change Element access_token_set: access_token = a_token end - apply_to_params(a_query_params: LIST [TUPLE [name:STRING; value:STRING]]; a_header_params: STRING_TABLE [STRING]) + apply_to_params (a_query_params: LIST [TUPLE [name:READABLE_STRING_8; value:READABLE_STRING_8]]; a_header_params: STRING_TABLE [READABLE_STRING_8]) -- . do if attached access_token as l_access_token then - a_header_params.force ("Bearer " + l_access_token,"Authorization" ) + -- TODO check if this convertion is ok. + a_header_params.force ("Bearer " + l_access_token.to_string_8,"Authorization" ) end end end diff --git a/samples/client/petstore/eiffel/src/framework/configuration.e b/samples/client/petstore/eiffel/src/framework/configuration.e index 3b9fe5e834e..1ede7bf9584 100644 --- a/samples/client/petstore/eiffel/src/framework/configuration.e +++ b/samples/client/petstore/eiffel/src/framework/configuration.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/eiffel/src/framework/serialization/api_deserializer.e b/samples/client/petstore/eiffel/src/framework/serialization/api_deserializer.e index 22f065ace99..a986b8e7f35 100644 --- a/samples/client/petstore/eiffel/src/framework/serialization/api_deserializer.e +++ b/samples/client/petstore/eiffel/src/framework/serialization/api_deserializer.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,8 +18,8 @@ class feature -- Access - deserializer (f: FUNCTION [TUPLE [content_type:STRING; body:STRING; type:TYPE [detachable ANY]], detachable ANY]; a_content_type: STRING; a_body: STRING; a_type:TYPE [detachable ANY]): detachable ANY - -- -- From a given response deserialize body `a_body' with conent_type `a_content_type' to a target object of type `a_type'. + deserializer (f: FUNCTION [TUPLE [content_type:READABLE_STRING_8; body:READABLE_STRING_8; type:TYPE [detachable ANY]], detachable ANY]; a_content_type: READABLE_STRING_8; a_body: READABLE_STRING_8; a_type:TYPE [detachable ANY]): detachable ANY + -- From a given response deserialize body `a_body' with conent_type `a_content_type' to a target object of type `a_type'. do Result := f.item ([a_content_type, a_body, a_type]) end diff --git a/samples/client/petstore/eiffel/src/framework/serialization/api_json_deserializer.e b/samples/client/petstore/eiffel/src/framework/serialization/api_json_deserializer.e index 993decf6a2c..dd5f91d56bf 100644 --- a/samples/client/petstore/eiffel/src/framework/serialization/api_json_deserializer.e +++ b/samples/client/petstore/eiffel/src/framework/serialization/api_json_deserializer.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ expanded class feature -- Access from_json (a_val:STRING; a_type: TYPE [detachable ANY] ): detachable ANY - -- Deserialize a a json representation `a_val' to an object + -- Deserialize a json representation `a_val' to an object -- of type `a_type' local conv_from: JSON_BASIC_REFLECTOR_DESERIALIZER diff --git a/samples/client/petstore/eiffel/src/framework/serialization/api_json_serializer.e b/samples/client/petstore/eiffel/src/framework/serialization/api_json_serializer.e index b7a144f7018..3bbb064f8f8 100644 --- a/samples/client/petstore/eiffel/src/framework/serialization/api_json_serializer.e +++ b/samples/client/petstore/eiffel/src/framework/serialization/api_json_serializer.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/eiffel/src/framework/serialization/api_serializer.e b/samples/client/petstore/eiffel/src/framework/serialization/api_serializer.e index db5d96af069..0afafdf843f 100644 --- a/samples/client/petstore/eiffel/src/framework/serialization/api_serializer.e +++ b/samples/client/petstore/eiffel/src/framework/serialization/api_serializer.e @@ -2,7 +2,7 @@ note description:"[ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - OpenAPI spec version: 1.0.0 + The version of the OpenAPI document: 1.0.0 NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,9 +19,10 @@ class feature -- Access - serializer (f: FUNCTION [TUPLE [content_type:STRING; type:ANY],STRING]; a_content_type: STRING; a_type: ANY): STRING + serializer (f: FUNCTION [TUPLE [content_type:READABLE_STRING_8; type:ANY],READABLE_STRING_8]; a_content_type: READABLE_STRING_8; a_type: ANY): STRING_8 -- Serialize an object of type `a_type' using the content type `a_content_type'. do - Result := f.item ([a_content_type, a_type]) + -- TODO check if this convertion it's ok. + Result := f.item ([a_content_type, a_type]).to_string_8 end end diff --git a/samples/client/petstore/eiffel/src/framework/serialization/json_basic_reflector_deserializer.e b/samples/client/petstore/eiffel/src/framework/serialization/json_basic_reflector_deserializer.e index 91dc90ed929..3a6f2b04c8b 100644 --- a/samples/client/petstore/eiffel/src/framework/serialization/json_basic_reflector_deserializer.e +++ b/samples/client/petstore/eiffel/src/framework/serialization/json_basic_reflector_deserializer.e @@ -274,7 +274,7 @@ feature {NONE} -- Helpers: Object reference_from_json_object (a_json_object: JSON_OBJECT; ctx: JSON_DESERIALIZER_CONTEXT; a_type: detachable TYPE [detachable ANY]): detachable ANY local - l_type_name: detachable READABLE_STRING_32 + l_type_name: detachable READABLE_STRING_8 ref: REFLECTED_REFERENCE_OBJECT i: INTEGER fn: READABLE_STRING_GENERAL @@ -285,7 +285,7 @@ feature {NONE} -- Helpers: Object -- Updated to use the Type info insted of the type_field in JSON. -- fn.same_string ({JSON_REFLECTOR_SERIALIZER}.type_field_name if attached a_type then - l_type_name := a_type.name.as_string_32 + l_type_name := a_type.name.to_string_8 end Result := new_instance_of (l_type_name, a_type) if Result = Void then diff --git a/samples/client/petstore/eiffel/test/api_test.ecf b/samples/client/petstore/eiffel/test/api_test.ecf index ddb5082cabe..8b4a4bc4084 100644 --- a/samples/client/petstore/eiffel/test/api_test.ecf +++ b/samples/client/petstore/eiffel/test/api_test.ecf @@ -1,5 +1,5 @@ - + @@ -8,15 +8,15 @@ /CVS$ /EIFGENs$ - + - - + + - + diff --git a/samples/client/petstore/eiffel/test/apis/anotherfake_api_test.e b/samples/client/petstore/eiffel/test/apis/anotherfake_api_test.e index 972a5d8f9ae..ecca4f9f3b0 100644 --- a/samples/client/petstore/eiffel/test/apis/anotherfake_api_test.e +++ b/samples/client/petstore/eiffel/test/apis/anotherfake_api_test.e @@ -13,18 +13,18 @@ inherit feature -- Test routines - test_test_special_tags + test_call123test_special_tags -- To test special tags -- - -- To test special tags + -- To test special tags and operation ID starting with number local l_response: CLIENT - l_client: CLIENT + l_body: CLIENT do -- TODO: Initialize required params. - -- l_client + -- l_body - -- l_response := api.test_special_tags(l_client) + -- l_response := api.call123test_special_tags(l_body) assert ("not_implemented", False) end diff --git a/samples/client/petstore/eiffel/test/apis/fake_api_test.e b/samples/client/petstore/eiffel/test/apis/fake_api_test.e index 0fa7b5e3688..23d1b3d9724 100644 --- a/samples/client/petstore/eiffel/test/apis/fake_api_test.e +++ b/samples/client/petstore/eiffel/test/apis/fake_api_test.e @@ -13,13 +13,27 @@ inherit feature -- Test routines + test_create_xml_item + -- creates an XmlItem + -- + -- this route creates an XmlItem + local + l_xml_item: XML_ITEM + do + -- TODO: Initialize required params. + -- l_xml_item + + -- api.create_xml_item(l_xml_item) + assert ("not_implemented", False) + end + test_fake_outer_boolean_serialize -- -- -- Test serialization of outer boolean types local - l_response: OUTER_BOOLEAN - l_body: OUTER_BOOLEAN + l_response: BOOLEAN + l_body: BOOLEAN do -- TODO: Initialize required params. @@ -46,8 +60,8 @@ feature -- Test routines -- -- Test serialization of outer number types local - l_response: OUTER_NUMBER - l_body: OUTER_NUMBER + l_response: REAL_32 + l_body: REAL_32 do -- TODO: Initialize required params. @@ -60,8 +74,8 @@ feature -- Test routines -- -- Test serialization of outer string types local - l_response: OUTER_STRING - l_body: OUTER_STRING + l_response: STRING_32 + l_body: STRING_32 do -- TODO: Initialize required params. @@ -69,6 +83,36 @@ feature -- Test routines assert ("not_implemented", False) end + test_test_body_with_file_schema + -- + -- + -- For this test, the body for this request much reference a schema named `File`. + local + l_body: FILE_SCHEMA_TEST_CLASS + do + -- TODO: Initialize required params. + -- l_body + + -- api.test_body_with_file_schema(l_body) + assert ("not_implemented", False) + end + + test_test_body_with_query_params + -- + -- + -- + local + l_query: STRING_32 + l_body: USER + do + -- TODO: Initialize required params. + -- l_query + -- l_body + + -- api.test_body_with_query_params(l_query, l_body) + assert ("not_implemented", False) + end + test_test_client_model -- To test \"client\" model -- @@ -85,9 +129,9 @@ feature -- Test routines end test_test_endpoint_parameters - -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -- - -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + -- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 local l_number: REAL_32 l_double: REAL_64 @@ -98,10 +142,10 @@ feature -- Test routines l_int64: INTEGER_64 l_float: REAL_32 l_string: STRING_32 - l_binary: STRING_32 + l_binary: FILE l_date: DATE l_date_time: DATE_TIME - l_password: STRING_32 + l_password: STRING l_callback: STRING_32 do -- TODO: Initialize required params. @@ -119,18 +163,52 @@ feature -- Test routines -- -- To test enum parameters local - l_enum_form_string_array: LIST [STRING_32] - l_enum_form_string: STRING_32 l_enum_header_string_array: LIST [STRING_32] l_enum_header_string: STRING_32 l_enum_query_string_array: LIST [STRING_32] l_enum_query_string: STRING_32 l_enum_query_integer: INTEGER_32 l_enum_query_double: REAL_64 + l_enum_form_string_array: LIST [STRING_32] + l_enum_form_string: STRING_32 do -- TODO: Initialize required params. - -- api.test_enum_parameters(l_enum_form_string_array, l_enum_form_string, l_enum_header_string_array, l_enum_header_string, l_enum_query_string_array, l_enum_query_string, l_enum_query_integer, l_enum_query_double) + -- api.test_enum_parameters(l_enum_header_string_array, l_enum_header_string, l_enum_query_string_array, l_enum_query_string, l_enum_query_integer, l_enum_query_double, l_enum_form_string_array, l_enum_form_string) + assert ("not_implemented", False) + end + + test_test_group_parameters + -- Fake endpoint to test group parameters (optional) + -- + -- Fake endpoint to test group parameters (optional) + local + l_required_string_group: INTEGER_32 + l_required_boolean_group: BOOLEAN + l_required_int64_group: INTEGER_64 + l_string_group: INTEGER_32 + l_boolean_group: BOOLEAN + l_int64_group: INTEGER_64 + do + -- TODO: Initialize required params. + -- l_required_string_group + -- l_required_boolean_group + -- l_required_int64_group + + -- api.test_group_parameters(l_required_string_group, l_required_boolean_group, l_required_int64_group, l_string_group, l_boolean_group, l_int64_group) + assert ("not_implemented", False) + end + + test_test_inline_additional_properties + -- test inline additionalProperties + -- + -- + local + l_param: STRING_TABLE [STRING_32] + do + -- TODO: Initialize required params. + + -- api.test_inline_additional_properties(l_param) assert ("not_implemented", False) end @@ -149,6 +227,28 @@ feature -- Test routines -- api.test_json_form_data(l_param, l_param2) assert ("not_implemented", False) end + + test_test_query_parameter_collection_format + -- + -- + -- To test the collection format in query parameters + local + l_pipe: LIST [STRING_32] + l_ioutil: LIST [STRING_32] + l_http: LIST [STRING_32] + l_url: LIST [STRING_32] + l_context: LIST [STRING_32] + do + -- TODO: Initialize required params. + -- create {ARRAYED_LIST [STRING_32]} l_pipe.make (2) + -- create {ARRAYED_LIST [STRING_32]} l_ioutil.make (2) + -- create {ARRAYED_LIST [STRING_32]} l_http.make (2) + -- create {ARRAYED_LIST [STRING_32]} l_url.make (2) + -- create {ARRAYED_LIST [STRING_32]} l_context.make (2) + + -- api.test_query_parameter_collection_format(l_pipe, l_ioutil, l_http, l_url, l_context) + assert ("not_implemented", False) + end feature {NONE} -- Implementation diff --git a/samples/client/petstore/eiffel/test/apis/fake_classname_tags123_api_test.e b/samples/client/petstore/eiffel/test/apis/fake_classname_tags123_api_test.e deleted file mode 100644 index a4366a962a6..00000000000 --- a/samples/client/petstore/eiffel/test/apis/fake_classname_tags123_api_test.e +++ /dev/null @@ -1,39 +0,0 @@ -note - description: "API tests for FAKE_CLASSNAME_TAGS123_API" - date: "$Date$" - revision: "$Revision$" - - -class FAKE_CLASSNAME_TAGS123_API_TEST - -inherit - - EQA_TEST_SET - -feature -- Test routines - - - test_test_classname - -- To test class name in snake case - -- - -- - local - l_response: CLIENT - l_body: CLIENT - do - -- TODO: Initialize required params. - -- l_body - - -- l_response := api.test_classname(l_body) - assert ("not_implemented", False) - end - -feature {NONE} -- Implementation - - api: FAKE_CLASSNAME_TAGS123_API - -- Create an object instance of `FAKE_CLASSNAME_TAGS123_API'. - once - create { FAKE_CLASSNAME_TAGS123_API } Result - end - -end diff --git a/samples/client/petstore/eiffel/test/apis/fakeclassnametags123_api_test.e b/samples/client/petstore/eiffel/test/apis/fakeclassnametags123_api_test.e index 8358fd811b4..f38045c0e3e 100644 --- a/samples/client/petstore/eiffel/test/apis/fakeclassnametags123_api_test.e +++ b/samples/client/petstore/eiffel/test/apis/fakeclassnametags123_api_test.e @@ -19,12 +19,12 @@ feature -- Test routines -- To test class name in snake case local l_response: CLIENT - l_client: CLIENT + l_body: CLIENT do -- TODO: Initialize required params. - -- l_client + -- l_body - -- l_response := api.test_classname(l_client) + -- l_response := api.test_classname(l_body) assert ("not_implemented", False) end diff --git a/samples/client/petstore/eiffel/test/apis/pet_api_test.e b/samples/client/petstore/eiffel/test/apis/pet_api_test.e index 0cccf1eb8b6..b1fdf70a9a8 100644 --- a/samples/client/petstore/eiffel/test/apis/pet_api_test.e +++ b/samples/client/petstore/eiffel/test/apis/pet_api_test.e @@ -18,12 +18,13 @@ feature -- Test routines -- -- local - l_body: PET + l_response: PET + l_pet: PET do -- TODO: Initialize required params. - -- l_body + -- l_pet - -- api.add_pet(l_body) + -- l_response := api.add_pet(l_pet) assert ("not_implemented", False) end @@ -32,13 +33,13 @@ feature -- Test routines -- -- local - l_petid: INTEGER_64 + l_pet_id: INTEGER_64 l_api_key: STRING_32 do -- TODO: Initialize required params. - -- l_petid + -- l_pet_id - -- api.delete_pet(l_petid, l_api_key) + -- api.delete_pet(l_pet_id, l_api_key) assert ("not_implemented", False) end @@ -78,12 +79,12 @@ feature -- Test routines -- Returns a single pet local l_response: PET - l_petid: INTEGER_64 + l_pet_id: INTEGER_64 do -- TODO: Initialize required params. - -- l_petid + -- l_pet_id - -- l_response := api.pet_by_id(l_petid) + -- l_response := api.pet_by_id(l_pet_id) assert ("not_implemented", False) end @@ -92,12 +93,13 @@ feature -- Test routines -- -- local - l_body: PET + l_response: PET + l_pet: PET do -- TODO: Initialize required params. - -- l_body + -- l_pet - -- api.update_pet(l_body) + -- l_response := api.update_pet(l_pet) assert ("not_implemented", False) end @@ -106,14 +108,14 @@ feature -- Test routines -- -- local - l_petid: INTEGER_64 + l_pet_id: INTEGER_64 l_name: STRING_32 l_status: STRING_32 do -- TODO: Initialize required params. - -- l_petid + -- l_pet_id - -- api.update_pet_with_form(l_petid, l_name, l_status) + -- api.update_pet_with_form(l_pet_id, l_name, l_status) assert ("not_implemented", False) end @@ -123,14 +125,14 @@ feature -- Test routines -- local l_response: API_RESPONSE - l_petid: INTEGER_64 - l_additionalmetadata: STRING_32 + l_pet_id: INTEGER_64 + l_additional_metadata: STRING_32 l_file: FILE do -- TODO: Initialize required params. - -- l_petid + -- l_pet_id - -- l_response := api.upload_file(l_petid, l_additionalmetadata, l_file) + -- l_response := api.upload_file(l_pet_id, l_additional_metadata, l_file) assert ("not_implemented", False) end diff --git a/samples/client/petstore/eiffel/test/apis/store_api_test.e b/samples/client/petstore/eiffel/test/apis/store_api_test.e index 75b5216cfbb..e24849bf290 100644 --- a/samples/client/petstore/eiffel/test/apis/store_api_test.e +++ b/samples/client/petstore/eiffel/test/apis/store_api_test.e @@ -16,14 +16,14 @@ feature -- Test routines test_delete_order -- Delete purchase order by ID -- - -- For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + -- For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors local - l_orderid: INTEGER_64 + l_order_id: STRING_32 do -- TODO: Initialize required params. - -- l_orderid + -- l_order_id - -- api.delete_order(l_orderid) + -- api.delete_order(l_order_id) assert ("not_implemented", False) end @@ -43,15 +43,15 @@ feature -- Test routines test_order_by_id -- Find purchase order by ID -- - -- For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + -- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions local l_response: ORDER - l_orderid: INTEGER_64 + l_order_id: INTEGER_64 do -- TODO: Initialize required params. - -- l_orderid + -- l_order_id - -- l_response := api.order_by_id(l_orderid) + -- l_response := api.order_by_id(l_order_id) assert ("not_implemented", False) end @@ -61,12 +61,12 @@ feature -- Test routines -- local l_response: ORDER - l_body: ORDER + l_order: ORDER do -- TODO: Initialize required params. - -- l_body + -- l_order - -- l_response := api.place_order(l_body) + -- l_response := api.place_order(l_order) assert ("not_implemented", False) end diff --git a/samples/client/petstore/eiffel/test/apis/user_api_test.e b/samples/client/petstore/eiffel/test/apis/user_api_test.e index edad881f1ec..8e105d1275a 100644 --- a/samples/client/petstore/eiffel/test/apis/user_api_test.e +++ b/samples/client/petstore/eiffel/test/apis/user_api_test.e @@ -18,12 +18,12 @@ feature -- Test routines -- -- This can only be done by the logged in user. local - l_body: USER + l_user: USER do -- TODO: Initialize required params. - -- l_body + -- l_user - -- api.create_user(l_body) + -- api.create_user(l_user) assert ("not_implemented", False) end @@ -32,12 +32,12 @@ feature -- Test routines -- -- local - l_body: LIST [USER] + l_user: LIST [USER] do -- TODO: Initialize required params. - -- create {ARRAYED_LIST [USER]} l_body.make (2) + -- create {ARRAYED_LIST [USER]} l_user.make (2) - -- api.create_users_with_array_input(l_body) + -- api.create_users_with_array_input(l_user) assert ("not_implemented", False) end @@ -46,12 +46,12 @@ feature -- Test routines -- -- local - l_body: LIST [USER] + l_user: LIST [USER] do -- TODO: Initialize required params. - -- create {ARRAYED_LIST [USER]} l_body.make (2) + -- create {ARRAYED_LIST [USER]} l_user.make (2) - -- api.create_users_with_list_input(l_body) + -- api.create_users_with_list_input(l_user) assert ("not_implemented", False) end @@ -104,13 +104,13 @@ feature -- Test routines -- This can only be done by the logged in user. local l_username: STRING_32 - l_body: USER + l_user: USER do -- TODO: Initialize required params. -- l_username - -- l_body + -- l_user - -- api.update_user(l_username, l_body) + -- api.update_user(l_username, l_user) assert ("not_implemented", False) end