forked from loafle/openapi-generator-original
Set skipFormModel to true by default (#8125)
* set skipFormModel to true by default * update tests * regenerate ruby faraday client * remove inline object spec files * more clean up on inline object files * update samples
This commit is contained in:
parent
52c63bb325
commit
0be3fe6104
@ -426,7 +426,7 @@ public class DefaultGenerator implements Generator {
|
||||
|
||||
Boolean skipFormModel = GlobalSettings.getProperty(CodegenConstants.SKIP_FORM_MODEL) != null ?
|
||||
Boolean.valueOf(GlobalSettings.getProperty(CodegenConstants.SKIP_FORM_MODEL)) :
|
||||
getGeneratorPropertyDefaultSwitch(CodegenConstants.SKIP_FORM_MODEL, false);
|
||||
getGeneratorPropertyDefaultSwitch(CodegenConstants.SKIP_FORM_MODEL, true);
|
||||
|
||||
// process models only
|
||||
for (String name : modelKeys) {
|
||||
@ -448,9 +448,9 @@ public class DefaultGenerator implements Generator {
|
||||
if (unusedModels.contains(name)) {
|
||||
if (Boolean.FALSE.equals(skipFormModel)) {
|
||||
// if skipFormModel sets to true, still generate the model and log the result
|
||||
LOGGER.info("Model {} (marked as unused due to form parameters) is generated due to the system property skipFormModel=false (default)", name);
|
||||
LOGGER.info("Model {} (marked as unused due to form parameters) is generated due to the global property `skipFormModel` set to false", name);
|
||||
} else {
|
||||
LOGGER.info("Model {} not generated since it's marked as unused (due to form parameters) and skipFormModel (system property) set to true", name);
|
||||
LOGGER.info("Model {} not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)", name);
|
||||
// TODO: Should this be added to dryRun? If not, this seems like a weird place to return early from processing.
|
||||
continue;
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
.excludeParameterFeatures(
|
||||
ParameterFeature.Cookie
|
||||
)
|
||||
);
|
||||
);
|
||||
|
||||
// this may set datatype right for additional properties
|
||||
instantiationTypes.put("map", "dict");
|
||||
@ -130,7 +130,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
supportingFiles.add(new SupportingFile("__init__apis.mustache", packagePath() + File.separatorChar + "apis", "__init__.py"));
|
||||
// Generate the 'signing.py' module, but only if the 'HTTP signature' security scheme is specified in the OAS.
|
||||
Map<String, SecurityScheme> securitySchemeMap = openAPI != null ?
|
||||
(openAPI.getComponents() != null ? openAPI.getComponents().getSecuritySchemes() : null) : null;
|
||||
(openAPI.getComponents() != null ? openAPI.getComponents().getSecuritySchemes() : null) : null;
|
||||
List<CodegenSecurity> authMethods = fromSecurity(securitySchemeMap);
|
||||
if (ProcessUtils.hasHttpSignatureMethods(authMethods)) {
|
||||
supportingFiles.add(new SupportingFile("signing.mustache", packagePath(), "signing.py"));
|
||||
@ -302,7 +302,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
} else if (ModelUtils.isDateTimeSchema(p)) {
|
||||
defaultValue = pythonDateTime(defaultObject);
|
||||
} else if (ModelUtils.isStringSchema(p) && !ModelUtils.isByteArraySchema(p) && !ModelUtils.isBinarySchema(p) && !ModelUtils.isFileSchema(p) && !ModelUtils.isUUIDSchema(p) && !ModelUtils.isEmailSchema(p)) {
|
||||
defaultValue = ensureQuotes(defaultValue);
|
||||
defaultValue = ensureQuotes(defaultValue);
|
||||
} else if (ModelUtils.isBooleanSchema(p)) {
|
||||
if (Boolean.valueOf(defaultValue) == false) {
|
||||
defaultValue = "False";
|
||||
@ -316,7 +316,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
@Override
|
||||
public String toModelImport(String name) {
|
||||
// name looks like Cat
|
||||
return "from " + modelPackage() + "." + toModelFilename(name) + " import "+ toModelName(name);
|
||||
return "from " + modelPackage() + "." + toModelFilename(name) + " import " + toModelName(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -326,9 +326,9 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
// loops through imports and converts them all
|
||||
// from 'Pet' to 'from petstore_api.model.pet import Pet'
|
||||
|
||||
HashMap<String, Object> val = (HashMap<String, Object>)objs.get("operations");
|
||||
HashMap<String, Object> val = (HashMap<String, Object>) objs.get("operations");
|
||||
ArrayList<CodegenOperation> operations = (ArrayList<CodegenOperation>) val.get("operation");
|
||||
ArrayList<HashMap<String, String>> imports = (ArrayList<HashMap<String, String>>)objs.get("imports");
|
||||
ArrayList<HashMap<String, String>> imports = (ArrayList<HashMap<String, String>>) objs.get("imports");
|
||||
for (CodegenOperation operation : operations) {
|
||||
if (operation.imports.size() == 0) {
|
||||
continue;
|
||||
@ -356,27 +356,29 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> postProcessAllModels(Map<String, Object> objs) {
|
||||
super.postProcessAllModels(objs);
|
||||
super.postProcessAllModels(objs);
|
||||
|
||||
List<String> modelsToRemove = new ArrayList<>();
|
||||
Map<String, Schema> allDefinitions = ModelUtils.getSchemas(this.openAPI);
|
||||
for (String schemaName: allDefinitions.keySet()) {
|
||||
Schema refSchema = new Schema().$ref("#/components/schemas/"+schemaName);
|
||||
for (String schemaName : allDefinitions.keySet()) {
|
||||
Schema refSchema = new Schema().$ref("#/components/schemas/" + schemaName);
|
||||
Schema unaliasedSchema = unaliasSchema(refSchema, importMapping);
|
||||
String modelName = toModelName(schemaName);
|
||||
if (unaliasedSchema.get$ref() == null) {
|
||||
modelsToRemove.add(modelName);
|
||||
} else {
|
||||
HashMap<String, Object> objModel = (HashMap<String, Object>) objs.get(modelName);
|
||||
List<Map<String, Object>> models = (List<Map<String, Object>>) objModel.get("models");
|
||||
for (Map<String, Object> model : models) {
|
||||
CodegenModel cm = (CodegenModel) model.get("model");
|
||||
String[] importModelNames = cm.imports.toArray(new String[0]);
|
||||
cm.imports.clear();
|
||||
for (String importModelName : importModelNames) {
|
||||
cm.imports.add(toModelImport(importModelName));
|
||||
String globalImportFixer = "globals()['" + importModelName + "'] = " + importModelName;
|
||||
cm.imports.add(globalImportFixer);
|
||||
if (objModel != null) { // to avoid form parameter's models that are not generated (skipFormModel=true)
|
||||
List<Map<String, Object>> models = (List<Map<String, Object>>) objModel.get("models");
|
||||
for (Map<String, Object> model : models) {
|
||||
CodegenModel cm = (CodegenModel) model.get("model");
|
||||
String[] importModelNames = cm.imports.toArray(new String[0]);
|
||||
cm.imports.clear();
|
||||
for (String importModelName : importModelNames) {
|
||||
cm.imports.add(toModelImport(importModelName));
|
||||
String globalImportFixer = "globals()['" + importModelName + "'] = " + importModelName;
|
||||
cm.imports.add(globalImportFixer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -511,13 +513,13 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the sanitized variable name for enum
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @param datatype data type
|
||||
* @return the sanitized variable name for enum
|
||||
*/
|
||||
/**
|
||||
* Return the sanitized variable name for enum
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @param datatype data type
|
||||
* @return the sanitized variable name for enum
|
||||
*/
|
||||
public String toEnumVarName(String value, String datatype) {
|
||||
// our enum var names are keys in a python dict, so change spaces to underscores
|
||||
if (value.length() == 0) {
|
||||
@ -557,13 +559,13 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
@Override
|
||||
public void postProcessParameter(CodegenParameter p) {
|
||||
postProcessPattern(p.pattern, p.vendorExtensions);
|
||||
if (p.baseType != null && languageSpecificPrimitives.contains(p.baseType)){
|
||||
if (p.baseType != null && languageSpecificPrimitives.contains(p.baseType)) {
|
||||
// set baseType to null so the api docs will not point to a model for languageSpecificPrimitives
|
||||
p.baseType = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void addNullDefaultToOneOfAnyOfReqProps(Schema schema, CodegenModel result){
|
||||
private void addNullDefaultToOneOfAnyOfReqProps(Schema schema, CodegenModel result) {
|
||||
// for composed schema models, if the required properties are only from oneOf or anyOf models
|
||||
// give them a nulltype.Null so the user can omit including them in python
|
||||
ComposedSchema cs = (ComposedSchema) schema;
|
||||
@ -585,7 +587,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
if (anyOf != null) {
|
||||
oneOfanyOfSchemas.addAll(anyOf);
|
||||
}
|
||||
for (Schema sc: oneOfanyOfSchemas) {
|
||||
for (Schema sc : oneOfanyOfSchemas) {
|
||||
Schema refSchema = ModelUtils.getReferencedSchema(this.openAPI, sc);
|
||||
addProperties(otherProperties, otherRequired, refSchema);
|
||||
}
|
||||
@ -603,7 +605,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
|
||||
List<CodegenProperty> reqVars = result.getRequiredVars();
|
||||
if (reqVars != null) {
|
||||
for (CodegenProperty cp: reqVars) {
|
||||
for (CodegenProperty cp : reqVars) {
|
||||
String propName = cp.baseName;
|
||||
if (otherRequiredSet.contains(propName) && !selfRequiredSet.contains(propName)) {
|
||||
// if var is in otherRequiredSet and is not in selfRequiredSet and is in result.requiredVars
|
||||
@ -617,7 +619,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
/**
|
||||
* Sets the value of the 'model.parent' property in CodegenModel
|
||||
* We have a custom version of this function so we can add the dataType on the ArrayModel
|
||||
*/
|
||||
*/
|
||||
@Override
|
||||
protected void addParentContainer(CodegenModel model, String name, Schema schema) {
|
||||
super.addParentContainer(model, name, schema);
|
||||
@ -632,8 +634,8 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
* - set the correct regex values for requiredVars + optionalVars
|
||||
* - set model.defaultValue and model.hasRequired per the three use cases defined in this method
|
||||
*
|
||||
* @param name the name of the model
|
||||
* @param sc OAS Model object
|
||||
* @param name the name of the model
|
||||
* @param sc OAS Model object
|
||||
* @return Codegen Model object
|
||||
*/
|
||||
@Override
|
||||
@ -714,20 +716,20 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
* Primitive types in the OAS specification are implemented in Python using the corresponding
|
||||
* Python primitive types.
|
||||
* Composed types (e.g. allAll, oneOf, anyOf) are represented in Python using list of types.
|
||||
*
|
||||
* <p>
|
||||
* The caller should set the prefix and suffix arguments to empty string, except when
|
||||
* getTypeString invokes itself recursively. A non-empty prefix/suffix may be specified
|
||||
* to wrap the return value in a python dict, list or tuple.
|
||||
*
|
||||
* <p>
|
||||
* Examples:
|
||||
* - "bool, date, float" The data must be a bool, date or float.
|
||||
* - "[bool, date]" The data must be an array, and the array items must be a bool or date.
|
||||
*
|
||||
* @param p The OAS schema.
|
||||
* @param prefix prepended to the returned value.
|
||||
* @param suffix appended to the returned value.
|
||||
* @param p The OAS schema.
|
||||
* @param prefix prepended to the returned value.
|
||||
* @param suffix appended to the returned value.
|
||||
* @param referencedModelNames a list of models that are being referenced while generating the types,
|
||||
* may be used to generate imports.
|
||||
* may be used to generate imports.
|
||||
* @return a comma-separated string representation of the Python types
|
||||
*/
|
||||
private String getTypeString(Schema p, String prefix, String suffix, List<String> referencedModelNames) {
|
||||
@ -846,7 +848,8 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
}
|
||||
if (schema.getExample() != null) {
|
||||
return schema.getExample();
|
||||
} if (schema.getDefault() != null) {
|
||||
}
|
||||
if (schema.getDefault() != null) {
|
||||
return schema.getDefault();
|
||||
} else if (schema.getEnum() != null && !schema.getEnum().isEmpty()) {
|
||||
return schema.getEnum().get(0);
|
||||
@ -892,7 +895,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
}
|
||||
|
||||
private MappedModel getDiscriminatorMappedModel(CodegenDiscriminator disc) {
|
||||
for ( MappedModel mm : disc.getMappedModels() ) {
|
||||
for (MappedModel mm : disc.getMappedModels()) {
|
||||
String modelName = mm.getModelName();
|
||||
Schema modelSchema = getModelNameToSchemaCache().get(modelName);
|
||||
if (ModelUtils.isObjectSchema(modelSchema)) {
|
||||
@ -928,7 +931,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
final String indentionConst = " ";
|
||||
String currentIndentation = "";
|
||||
String closingIndentation = "";
|
||||
for (int i=0 ; i < indentationLevel ; i++) currentIndentation += indentionConst;
|
||||
for (int i = 0; i < indentationLevel; i++) currentIndentation += indentionConst;
|
||||
if (exampleLine.equals(0)) {
|
||||
closingIndentation = currentIndentation;
|
||||
currentIndentation = "";
|
||||
@ -938,7 +941,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
String openChars = "";
|
||||
String closeChars = "";
|
||||
if (modelName != null) {
|
||||
openChars = modelName+"(";
|
||||
openChars = modelName + "(";
|
||||
closeChars = ")";
|
||||
}
|
||||
|
||||
@ -953,7 +956,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
String ref = ModelUtils.getSimpleRef(schema.get$ref());
|
||||
Schema refSchema = allDefinitions.get(ref);
|
||||
if (null == refSchema) {
|
||||
LOGGER.warn("Unable to find referenced schema "+schema.get$ref()+"\n");
|
||||
LOGGER.warn("Unable to find referenced schema " + schema.get$ref() + "\n");
|
||||
return fullPrefix + "None" + closeChars;
|
||||
}
|
||||
String refModelName = getModelName(schema);
|
||||
@ -1003,7 +1006,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
// a BigDecimal:
|
||||
if ("Number".equalsIgnoreCase(schema.getFormat())) {
|
||||
example = "2";
|
||||
return fullPrefix + example + closeChars;
|
||||
return fullPrefix + example + closeChars;
|
||||
} else if (StringUtils.isNotBlank(schema.getPattern())) {
|
||||
String pattern = schema.getPattern();
|
||||
RgxGen rgxGen = new RgxGen(pattern);
|
||||
@ -1021,14 +1024,14 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
} else if (schema.getMinLength() != null) {
|
||||
example = "";
|
||||
int len = schema.getMinLength().intValue();
|
||||
for (int i=0;i<len;i++) example += "a";
|
||||
for (int i = 0; i < len; i++) example += "a";
|
||||
} else if (ModelUtils.isUUIDSchema(schema)) {
|
||||
example = "046b6c7f-0b8a-43b9-b35d-6489e6daee91";
|
||||
} else {
|
||||
example = "string_example";
|
||||
}
|
||||
}
|
||||
return fullPrefix + ensureQuotes(example) + closeChars;
|
||||
return fullPrefix + ensureQuotes(example) + closeChars;
|
||||
} else if (ModelUtils.isIntegerSchema(schema)) {
|
||||
if (objExample == null) {
|
||||
if (schema.getMinimum() != null) {
|
||||
@ -1055,7 +1058,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
ArraySchema arrayschema = (ArraySchema) schema;
|
||||
Schema itemSchema = arrayschema.getItems();
|
||||
String itemModelName = getModelName(itemSchema);
|
||||
example = fullPrefix + "[" + "\n" + toExampleValueRecursive(itemModelName, itemSchema, objExample, indentationLevel+1, "", exampleLine+1) + ",\n" + closingIndentation + "]" + closeChars;
|
||||
example = fullPrefix + "[" + "\n" + toExampleValueRecursive(itemModelName, itemSchema, objExample, indentationLevel + 1, "", exampleLine + 1) + ",\n" + closingIndentation + "]" + closeChars;
|
||||
return example;
|
||||
} else if (ModelUtils.isMapSchema(schema)) {
|
||||
if (modelName == null) {
|
||||
@ -1074,10 +1077,10 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
addPropsExample = exampleFromStringOrArraySchema(addPropsSchema, addPropsExample, key);
|
||||
String addPropPrefix = key + "=";
|
||||
if (modelName == null) {
|
||||
addPropPrefix = ensureQuotes(key) + ": ";
|
||||
addPropPrefix = ensureQuotes(key) + ": ";
|
||||
}
|
||||
String addPropsModelName = getModelName(addPropsSchema);
|
||||
example = fullPrefix + "\n" + toExampleValueRecursive(addPropsModelName, addPropsSchema, addPropsExample, indentationLevel + 1, addPropPrefix, exampleLine + 1) + ",\n" + closingIndentation + closeChars;
|
||||
example = fullPrefix + "\n" + toExampleValueRecursive(addPropsModelName, addPropsSchema, addPropsExample, indentationLevel + 1, addPropPrefix, exampleLine + 1) + ",\n" + closingIndentation + closeChars;
|
||||
} else {
|
||||
example = fullPrefix + closeChars;
|
||||
}
|
||||
@ -1172,7 +1175,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
ArraySchema arraySchema = (ArraySchema) schema;
|
||||
Schema itemSchema = arraySchema.getItems();
|
||||
example = getObjectExample(itemSchema);
|
||||
if (example != null ) {
|
||||
if (example != null) {
|
||||
return example;
|
||||
} else if (simpleStringSchema(itemSchema)) {
|
||||
return propName + "_example";
|
||||
@ -1259,9 +1262,9 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen {
|
||||
* This ensures that all of our samples are generated in
|
||||
* toExampleValueRecursive
|
||||
*
|
||||
* @param name the property name
|
||||
* @param name the property name
|
||||
* @param propertySchema the property schema
|
||||
* @param imports our import set
|
||||
* @param imports our import set
|
||||
* @return the resultant CodegenParameter
|
||||
*/
|
||||
@Override
|
||||
|
@ -64,7 +64,7 @@ public class DefaultGeneratorTest {
|
||||
|
||||
List<File> files = generator.opts(clientOptInput).generate();
|
||||
|
||||
Assert.assertEquals(files.size(), 44);
|
||||
Assert.assertEquals(files.size(), 42);
|
||||
|
||||
// Check expected generated files
|
||||
// api sanity check
|
||||
@ -149,7 +149,7 @@ public class DefaultGeneratorTest {
|
||||
|
||||
List<File> files = generator.opts(clientOptInput).generate();
|
||||
|
||||
Assert.assertEquals(files.size(), 20);
|
||||
Assert.assertEquals(files.size(), 16);
|
||||
|
||||
// Check API is written and Test is not
|
||||
TestUtils.ensureContainsFile(files, output, "src/main/java/org/openapitools/client/api/PetApi.java");
|
||||
|
@ -8,10 +8,6 @@ force-app/main/default/classes/OASCategory.cls
|
||||
force-app/main/default/classes/OASCategory.cls-meta.xml
|
||||
force-app/main/default/classes/OASClient.cls
|
||||
force-app/main/default/classes/OASClient.cls-meta.xml
|
||||
force-app/main/default/classes/OASInlineObject.cls
|
||||
force-app/main/default/classes/OASInlineObject.cls-meta.xml
|
||||
force-app/main/default/classes/OASInlineObject1.cls
|
||||
force-app/main/default/classes/OASInlineObject1.cls-meta.xml
|
||||
force-app/main/default/classes/OASOrder.cls
|
||||
force-app/main/default/classes/OASOrder.cls-meta.xml
|
||||
force-app/main/default/classes/OASPet.cls
|
||||
|
@ -91,8 +91,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [OASApiResponse](OASApiResponse.md)
|
||||
- [OASCategory](OASCategory.md)
|
||||
- [OASInlineObject](OASInlineObject.md)
|
||||
- [OASInlineObject1](OASInlineObject1.md)
|
||||
- [OASOrder](OASOrder.md)
|
||||
- [OASPet](OASPet.md)
|
||||
- [OASTag](OASTag.md)
|
||||
|
@ -43,12 +43,6 @@ docs/GmFruit.md
|
||||
docs/GrandparentAnimal.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/IsoscelesTriangle.md
|
||||
docs/List.md
|
||||
@ -153,12 +147,6 @@ src/Org.OpenAPITools/Model/GmFruit.cs
|
||||
src/Org.OpenAPITools/Model/GrandparentAnimal.cs
|
||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject1.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject2.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
|
@ -195,12 +195,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.GrandparentAnimal](docs/GrandparentAnimal.md)
|
||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Model.InlineObject](docs/InlineObject.md)
|
||||
- [Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Model.InlineObject2](docs/InlineObject2.md)
|
||||
- [Model.InlineObject3](docs/InlineObject3.md)
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||
- [Model.List](docs/List.md)
|
||||
|
@ -43,12 +43,6 @@ docs/GmFruit.md
|
||||
docs/GrandparentAnimal.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/IsoscelesTriangle.md
|
||||
docs/List.md
|
||||
@ -152,12 +146,6 @@ src/Org.OpenAPITools/Model/GmFruit.cs
|
||||
src/Org.OpenAPITools/Model/GrandparentAnimal.cs
|
||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject1.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject2.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
|
@ -183,12 +183,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.GrandparentAnimal](docs/GrandparentAnimal.md)
|
||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Model.InlineObject](docs/InlineObject.md)
|
||||
- [Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Model.InlineObject2](docs/InlineObject2.md)
|
||||
- [Model.InlineObject3](docs/InlineObject3.md)
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||
- [Model.List](docs/List.md)
|
||||
|
@ -43,12 +43,6 @@ docs/GmFruit.md
|
||||
docs/GrandparentAnimal.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/IsoscelesTriangle.md
|
||||
docs/List.md
|
||||
@ -152,12 +146,6 @@ src/Org.OpenAPITools/Model/GmFruit.cs
|
||||
src/Org.OpenAPITools/Model/GrandparentAnimal.cs
|
||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject1.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject2.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
|
@ -195,12 +195,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.GrandparentAnimal](docs/GrandparentAnimal.md)
|
||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Model.InlineObject](docs/InlineObject.md)
|
||||
- [Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Model.InlineObject2](docs/InlineObject2.md)
|
||||
- [Model.InlineObject3](docs/InlineObject3.md)
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||
- [Model.List](docs/List.md)
|
||||
|
@ -30,12 +30,6 @@ docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
@ -101,12 +95,6 @@ src/Org.OpenAPITools/Model/Foo.cs
|
||||
src/Org.OpenAPITools/Model/FormatTest.cs
|
||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject1.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject2.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
src/Org.OpenAPITools/Model/MapTest.cs
|
||||
|
@ -170,12 +170,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.FormatTest](docs/FormatTest.md)
|
||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Model.InlineObject](docs/InlineObject.md)
|
||||
- [Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Model.InlineObject2](docs/InlineObject2.md)
|
||||
- [Model.InlineObject3](docs/InlineObject3.md)
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.List](docs/List.md)
|
||||
- [Model.MapTest](docs/MapTest.md)
|
||||
|
@ -5,8 +5,6 @@ src/main/groovy/org/openapitools/api/PetApi.groovy
|
||||
src/main/groovy/org/openapitools/api/StoreApi.groovy
|
||||
src/main/groovy/org/openapitools/api/UserApi.groovy
|
||||
src/main/groovy/org/openapitools/model/Category.groovy
|
||||
src/main/groovy/org/openapitools/model/InlineObject.groovy
|
||||
src/main/groovy/org/openapitools/model/InlineObject1.groovy
|
||||
src/main/groovy/org/openapitools/model/ModelApiResponse.groovy
|
||||
src/main/groovy/org/openapitools/model/Order.groovy
|
||||
src/main/groovy/org/openapitools/model/Pet.groovy
|
||||
|
@ -29,12 +29,6 @@ docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
@ -93,12 +87,6 @@ src/model/Foo.js
|
||||
src/model/FormatTest.js
|
||||
src/model/HasOnlyReadOnly.js
|
||||
src/model/HealthCheckResult.js
|
||||
src/model/InlineObject.js
|
||||
src/model/InlineObject1.js
|
||||
src/model/InlineObject2.js
|
||||
src/model/InlineObject3.js
|
||||
src/model/InlineObject4.js
|
||||
src/model/InlineObject5.js
|
||||
src/model/InlineResponseDefault.js
|
||||
src/model/List.js
|
||||
src/model/MapTest.js
|
||||
|
@ -186,12 +186,6 @@ Class | Method | HTTP request | Description
|
||||
- [OpenApiPetstore.FormatTest](docs/FormatTest.md)
|
||||
- [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [OpenApiPetstore.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [OpenApiPetstore.InlineObject](docs/InlineObject.md)
|
||||
- [OpenApiPetstore.InlineObject1](docs/InlineObject1.md)
|
||||
- [OpenApiPetstore.InlineObject2](docs/InlineObject2.md)
|
||||
- [OpenApiPetstore.InlineObject3](docs/InlineObject3.md)
|
||||
- [OpenApiPetstore.InlineObject4](docs/InlineObject4.md)
|
||||
- [OpenApiPetstore.InlineObject5](docs/InlineObject5.md)
|
||||
- [OpenApiPetstore.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [OpenApiPetstore.List](docs/List.md)
|
||||
- [OpenApiPetstore.MapTest](docs/MapTest.md)
|
||||
|
@ -36,12 +36,6 @@ import Foo from './model/Foo';
|
||||
import FormatTest from './model/FormatTest';
|
||||
import HasOnlyReadOnly from './model/HasOnlyReadOnly';
|
||||
import HealthCheckResult from './model/HealthCheckResult';
|
||||
import InlineObject from './model/InlineObject';
|
||||
import InlineObject1 from './model/InlineObject1';
|
||||
import InlineObject2 from './model/InlineObject2';
|
||||
import InlineObject3 from './model/InlineObject3';
|
||||
import InlineObject4 from './model/InlineObject4';
|
||||
import InlineObject5 from './model/InlineObject5';
|
||||
import InlineResponseDefault from './model/InlineResponseDefault';
|
||||
import List from './model/List';
|
||||
import MapTest from './model/MapTest';
|
||||
@ -247,42 +241,6 @@ export {
|
||||
*/
|
||||
HealthCheckResult,
|
||||
|
||||
/**
|
||||
* The InlineObject model constructor.
|
||||
* @property {module:model/InlineObject}
|
||||
*/
|
||||
InlineObject,
|
||||
|
||||
/**
|
||||
* The InlineObject1 model constructor.
|
||||
* @property {module:model/InlineObject1}
|
||||
*/
|
||||
InlineObject1,
|
||||
|
||||
/**
|
||||
* The InlineObject2 model constructor.
|
||||
* @property {module:model/InlineObject2}
|
||||
*/
|
||||
InlineObject2,
|
||||
|
||||
/**
|
||||
* The InlineObject3 model constructor.
|
||||
* @property {module:model/InlineObject3}
|
||||
*/
|
||||
InlineObject3,
|
||||
|
||||
/**
|
||||
* The InlineObject4 model constructor.
|
||||
* @property {module:model/InlineObject4}
|
||||
*/
|
||||
InlineObject4,
|
||||
|
||||
/**
|
||||
* The InlineObject5 model constructor.
|
||||
* @property {module:model/InlineObject5}
|
||||
*/
|
||||
InlineObject5,
|
||||
|
||||
/**
|
||||
* The InlineResponseDefault model constructor.
|
||||
* @property {module:model/InlineResponseDefault}
|
||||
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject', function() {
|
||||
it('should create an instance of InlineObject', function() {
|
||||
// uncomment below and update the code to test InlineObject
|
||||
//var instane = new OpenApiPetstore.InlineObject();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject);
|
||||
});
|
||||
|
||||
it('should have the property name (base name: "name")', function() {
|
||||
// uncomment below and update the code to test the property name
|
||||
//var instane = new OpenApiPetstore.InlineObject();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property status (base name: "status")', function() {
|
||||
// uncomment below and update the code to test the property status
|
||||
//var instane = new OpenApiPetstore.InlineObject();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject1();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject1', function() {
|
||||
it('should create an instance of InlineObject1', function() {
|
||||
// uncomment below and update the code to test InlineObject1
|
||||
//var instane = new OpenApiPetstore.InlineObject1();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject1);
|
||||
});
|
||||
|
||||
it('should have the property additionalMetadata (base name: "additionalMetadata")', function() {
|
||||
// uncomment below and update the code to test the property additionalMetadata
|
||||
//var instane = new OpenApiPetstore.InlineObject1();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property file (base name: "file")', function() {
|
||||
// uncomment below and update the code to test the property file
|
||||
//var instane = new OpenApiPetstore.InlineObject1();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject2();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject2', function() {
|
||||
it('should create an instance of InlineObject2', function() {
|
||||
// uncomment below and update the code to test InlineObject2
|
||||
//var instane = new OpenApiPetstore.InlineObject2();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject2);
|
||||
});
|
||||
|
||||
it('should have the property enumFormStringArray (base name: "enum_form_string_array")', function() {
|
||||
// uncomment below and update the code to test the property enumFormStringArray
|
||||
//var instane = new OpenApiPetstore.InlineObject2();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property enumFormString (base name: "enum_form_string")', function() {
|
||||
// uncomment below and update the code to test the property enumFormString
|
||||
//var instane = new OpenApiPetstore.InlineObject2();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,143 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject3();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject3', function() {
|
||||
it('should create an instance of InlineObject3', function() {
|
||||
// uncomment below and update the code to test InlineObject3
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject3);
|
||||
});
|
||||
|
||||
it('should have the property integer (base name: "integer")', function() {
|
||||
// uncomment below and update the code to test the property integer
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property int32 (base name: "int32")', function() {
|
||||
// uncomment below and update the code to test the property int32
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property int64 (base name: "int64")', function() {
|
||||
// uncomment below and update the code to test the property int64
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _number (base name: "number")', function() {
|
||||
// uncomment below and update the code to test the property _number
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _float (base name: "float")', function() {
|
||||
// uncomment below and update the code to test the property _float
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _double (base name: "double")', function() {
|
||||
// uncomment below and update the code to test the property _double
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _string (base name: "string")', function() {
|
||||
// uncomment below and update the code to test the property _string
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property patternWithoutDelimiter (base name: "pattern_without_delimiter")', function() {
|
||||
// uncomment below and update the code to test the property patternWithoutDelimiter
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _byte (base name: "byte")', function() {
|
||||
// uncomment below and update the code to test the property _byte
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property binary (base name: "binary")', function() {
|
||||
// uncomment below and update the code to test the property binary
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _date (base name: "date")', function() {
|
||||
// uncomment below and update the code to test the property _date
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property dateTime (base name: "dateTime")', function() {
|
||||
// uncomment below and update the code to test the property dateTime
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property password (base name: "password")', function() {
|
||||
// uncomment below and update the code to test the property password
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property callback (base name: "callback")', function() {
|
||||
// uncomment below and update the code to test the property callback
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject4();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject4', function() {
|
||||
it('should create an instance of InlineObject4', function() {
|
||||
// uncomment below and update the code to test InlineObject4
|
||||
//var instane = new OpenApiPetstore.InlineObject4();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject4);
|
||||
});
|
||||
|
||||
it('should have the property param (base name: "param")', function() {
|
||||
// uncomment below and update the code to test the property param
|
||||
//var instane = new OpenApiPetstore.InlineObject4();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property param2 (base name: "param2")', function() {
|
||||
// uncomment below and update the code to test the property param2
|
||||
//var instane = new OpenApiPetstore.InlineObject4();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject5();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject5', function() {
|
||||
it('should create an instance of InlineObject5', function() {
|
||||
// uncomment below and update the code to test InlineObject5
|
||||
//var instane = new OpenApiPetstore.InlineObject5();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject5);
|
||||
});
|
||||
|
||||
it('should have the property additionalMetadata (base name: "additionalMetadata")', function() {
|
||||
// uncomment below and update the code to test the property additionalMetadata
|
||||
//var instane = new OpenApiPetstore.InlineObject5();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property requiredFile (base name: "requiredFile")', function() {
|
||||
// uncomment below and update the code to test the property requiredFile
|
||||
//var instane = new OpenApiPetstore.InlineObject5();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -2,7 +2,7 @@
|
||||
* 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,10 +14,10 @@
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', '../../src/index'], factory);
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require('../../src/index'));
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
@ -56,7 +56,7 @@
|
||||
|
||||
it('should have the property _string (base name: "string")', function() {
|
||||
// uncomment below and update the code to test the property _string
|
||||
//var instane = new OpenApiPetstore.InlineResponseDefault();
|
||||
//var instance = new OpenApiPetstore.InlineResponseDefault();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
|
@ -29,12 +29,6 @@ docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
@ -93,12 +87,6 @@ src/model/Foo.js
|
||||
src/model/FormatTest.js
|
||||
src/model/HasOnlyReadOnly.js
|
||||
src/model/HealthCheckResult.js
|
||||
src/model/InlineObject.js
|
||||
src/model/InlineObject1.js
|
||||
src/model/InlineObject2.js
|
||||
src/model/InlineObject3.js
|
||||
src/model/InlineObject4.js
|
||||
src/model/InlineObject5.js
|
||||
src/model/InlineResponseDefault.js
|
||||
src/model/List.js
|
||||
src/model/MapTest.js
|
||||
|
@ -184,12 +184,6 @@ Class | Method | HTTP request | Description
|
||||
- [OpenApiPetstore.FormatTest](docs/FormatTest.md)
|
||||
- [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [OpenApiPetstore.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [OpenApiPetstore.InlineObject](docs/InlineObject.md)
|
||||
- [OpenApiPetstore.InlineObject1](docs/InlineObject1.md)
|
||||
- [OpenApiPetstore.InlineObject2](docs/InlineObject2.md)
|
||||
- [OpenApiPetstore.InlineObject3](docs/InlineObject3.md)
|
||||
- [OpenApiPetstore.InlineObject4](docs/InlineObject4.md)
|
||||
- [OpenApiPetstore.InlineObject5](docs/InlineObject5.md)
|
||||
- [OpenApiPetstore.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [OpenApiPetstore.List](docs/List.md)
|
||||
- [OpenApiPetstore.MapTest](docs/MapTest.md)
|
||||
|
@ -36,12 +36,6 @@ import Foo from './model/Foo';
|
||||
import FormatTest from './model/FormatTest';
|
||||
import HasOnlyReadOnly from './model/HasOnlyReadOnly';
|
||||
import HealthCheckResult from './model/HealthCheckResult';
|
||||
import InlineObject from './model/InlineObject';
|
||||
import InlineObject1 from './model/InlineObject1';
|
||||
import InlineObject2 from './model/InlineObject2';
|
||||
import InlineObject3 from './model/InlineObject3';
|
||||
import InlineObject4 from './model/InlineObject4';
|
||||
import InlineObject5 from './model/InlineObject5';
|
||||
import InlineResponseDefault from './model/InlineResponseDefault';
|
||||
import List from './model/List';
|
||||
import MapTest from './model/MapTest';
|
||||
@ -247,42 +241,6 @@ export {
|
||||
*/
|
||||
HealthCheckResult,
|
||||
|
||||
/**
|
||||
* The InlineObject model constructor.
|
||||
* @property {module:model/InlineObject}
|
||||
*/
|
||||
InlineObject,
|
||||
|
||||
/**
|
||||
* The InlineObject1 model constructor.
|
||||
* @property {module:model/InlineObject1}
|
||||
*/
|
||||
InlineObject1,
|
||||
|
||||
/**
|
||||
* The InlineObject2 model constructor.
|
||||
* @property {module:model/InlineObject2}
|
||||
*/
|
||||
InlineObject2,
|
||||
|
||||
/**
|
||||
* The InlineObject3 model constructor.
|
||||
* @property {module:model/InlineObject3}
|
||||
*/
|
||||
InlineObject3,
|
||||
|
||||
/**
|
||||
* The InlineObject4 model constructor.
|
||||
* @property {module:model/InlineObject4}
|
||||
*/
|
||||
InlineObject4,
|
||||
|
||||
/**
|
||||
* The InlineObject5 model constructor.
|
||||
* @property {module:model/InlineObject5}
|
||||
*/
|
||||
InlineObject5,
|
||||
|
||||
/**
|
||||
* The InlineResponseDefault model constructor.
|
||||
* @property {module:model/InlineResponseDefault}
|
||||
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject', function() {
|
||||
it('should create an instance of InlineObject', function() {
|
||||
// uncomment below and update the code to test InlineObject
|
||||
//var instane = new OpenApiPetstore.InlineObject();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject);
|
||||
});
|
||||
|
||||
it('should have the property name (base name: "name")', function() {
|
||||
// uncomment below and update the code to test the property name
|
||||
//var instane = new OpenApiPetstore.InlineObject();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property status (base name: "status")', function() {
|
||||
// uncomment below and update the code to test the property status
|
||||
//var instane = new OpenApiPetstore.InlineObject();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject1();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject1', function() {
|
||||
it('should create an instance of InlineObject1', function() {
|
||||
// uncomment below and update the code to test InlineObject1
|
||||
//var instane = new OpenApiPetstore.InlineObject1();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject1);
|
||||
});
|
||||
|
||||
it('should have the property additionalMetadata (base name: "additionalMetadata")', function() {
|
||||
// uncomment below and update the code to test the property additionalMetadata
|
||||
//var instane = new OpenApiPetstore.InlineObject1();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property file (base name: "file")', function() {
|
||||
// uncomment below and update the code to test the property file
|
||||
//var instane = new OpenApiPetstore.InlineObject1();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject2();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject2', function() {
|
||||
it('should create an instance of InlineObject2', function() {
|
||||
// uncomment below and update the code to test InlineObject2
|
||||
//var instane = new OpenApiPetstore.InlineObject2();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject2);
|
||||
});
|
||||
|
||||
it('should have the property enumFormStringArray (base name: "enum_form_string_array")', function() {
|
||||
// uncomment below and update the code to test the property enumFormStringArray
|
||||
//var instane = new OpenApiPetstore.InlineObject2();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property enumFormString (base name: "enum_form_string")', function() {
|
||||
// uncomment below and update the code to test the property enumFormString
|
||||
//var instane = new OpenApiPetstore.InlineObject2();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,143 +0,0 @@
|
||||
/**
|
||||
* 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).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject3();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject3', function() {
|
||||
it('should create an instance of InlineObject3', function() {
|
||||
// uncomment below and update the code to test InlineObject3
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject3);
|
||||
});
|
||||
|
||||
it('should have the property integer (base name: "integer")', function() {
|
||||
// uncomment below and update the code to test the property integer
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property int32 (base name: "int32")', function() {
|
||||
// uncomment below and update the code to test the property int32
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property int64 (base name: "int64")', function() {
|
||||
// uncomment below and update the code to test the property int64
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _number (base name: "number")', function() {
|
||||
// uncomment below and update the code to test the property _number
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _float (base name: "float")', function() {
|
||||
// uncomment below and update the code to test the property _float
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _double (base name: "double")', function() {
|
||||
// uncomment below and update the code to test the property _double
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _string (base name: "string")', function() {
|
||||
// uncomment below and update the code to test the property _string
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property patternWithoutDelimiter (base name: "pattern_without_delimiter")', function() {
|
||||
// uncomment below and update the code to test the property patternWithoutDelimiter
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _byte (base name: "byte")', function() {
|
||||
// uncomment below and update the code to test the property _byte
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property binary (base name: "binary")', function() {
|
||||
// uncomment below and update the code to test the property binary
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property _date (base name: "date")', function() {
|
||||
// uncomment below and update the code to test the property _date
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property dateTime (base name: "dateTime")', function() {
|
||||
// uncomment below and update the code to test the property dateTime
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property password (base name: "password")', function() {
|
||||
// uncomment below and update the code to test the property password
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property callback (base name: "callback")', function() {
|
||||
// uncomment below and update the code to test the property callback
|
||||
//var instane = new OpenApiPetstore.InlineObject3();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject4();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject4', function() {
|
||||
it('should create an instance of InlineObject4', function() {
|
||||
// uncomment below and update the code to test InlineObject4
|
||||
//var instane = new OpenApiPetstore.InlineObject4();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject4);
|
||||
});
|
||||
|
||||
it('should have the property param (base name: "param")', function() {
|
||||
// uncomment below and update the code to test the property param
|
||||
//var instane = new OpenApiPetstore.InlineObject4();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property param2 (base name: "param2")', function() {
|
||||
// uncomment below and update the code to test the property param2
|
||||
//var instane = new OpenApiPetstore.InlineObject4();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 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).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD.
|
||||
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.expect, root.OpenApiPetstore);
|
||||
}
|
||||
}(this, function(expect, OpenApiPetstore) {
|
||||
'use strict';
|
||||
|
||||
var instance;
|
||||
|
||||
beforeEach(function() {
|
||||
instance = new OpenApiPetstore.InlineObject5();
|
||||
});
|
||||
|
||||
var getProperty = function(object, getter, property) {
|
||||
// Use getter method if present; otherwise, get the property directly.
|
||||
if (typeof object[getter] === 'function')
|
||||
return object[getter]();
|
||||
else
|
||||
return object[property];
|
||||
}
|
||||
|
||||
var setProperty = function(object, setter, property, value) {
|
||||
// Use setter method if present; otherwise, set the property directly.
|
||||
if (typeof object[setter] === 'function')
|
||||
object[setter](value);
|
||||
else
|
||||
object[property] = value;
|
||||
}
|
||||
|
||||
describe('InlineObject5', function() {
|
||||
it('should create an instance of InlineObject5', function() {
|
||||
// uncomment below and update the code to test InlineObject5
|
||||
//var instane = new OpenApiPetstore.InlineObject5();
|
||||
//expect(instance).to.be.a(OpenApiPetstore.InlineObject5);
|
||||
});
|
||||
|
||||
it('should have the property additionalMetadata (base name: "additionalMetadata")', function() {
|
||||
// uncomment below and update the code to test the property additionalMetadata
|
||||
//var instane = new OpenApiPetstore.InlineObject5();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
it('should have the property requiredFile (base name: "requiredFile")', function() {
|
||||
// uncomment below and update the code to test the property requiredFile
|
||||
//var instane = new OpenApiPetstore.InlineObject5();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}));
|
@ -56,7 +56,7 @@
|
||||
|
||||
it('should have the property _string (base name: "string")', function() {
|
||||
// uncomment below and update the code to test the property _string
|
||||
//var instane = new OpenApiPetstore.InlineResponseDefault();
|
||||
//var instance = new OpenApiPetstore.InlineResponseDefault();
|
||||
//expect(instance).to.be();
|
||||
});
|
||||
|
||||
|
@ -6,8 +6,6 @@ petstore/api/store_api.lua
|
||||
petstore/api/user_api.lua
|
||||
petstore/model/api_response.lua
|
||||
petstore/model/category.lua
|
||||
petstore/model/inline_object.lua
|
||||
petstore/model/inline_object_1.lua
|
||||
petstore/model/order.lua
|
||||
petstore/model/pet.lua
|
||||
petstore/model/tag.lua
|
||||
|
@ -28,8 +28,6 @@ build = {
|
||||
["petstore.api.user_api"] = "petstore/api/user_api.lua";
|
||||
["petstore.model.api_response"] = "petstore/model/api_response.lua";
|
||||
["petstore.model.category"] = "petstore/model/category.lua";
|
||||
["petstore.model.inline_object"] = "petstore/model/inline_object.lua";
|
||||
["petstore.model.inline_object_1"] = "petstore/model/inline_object_1.lua";
|
||||
["petstore.model.order"] = "petstore/model/order.lua";
|
||||
["petstore.model.pet"] = "petstore/model/pet.lua";
|
||||
["petstore.model.tag"] = "petstore/model/tag.lua";
|
||||
|
@ -35,18 +35,6 @@ SwaggerClient/Model/SWGCategoryManagedObject.h
|
||||
SwaggerClient/Model/SWGCategoryManagedObject.m
|
||||
SwaggerClient/Model/SWGCategoryManagedObjectBuilder.h
|
||||
SwaggerClient/Model/SWGCategoryManagedObjectBuilder.m
|
||||
SwaggerClient/Model/SWGInlineObject.h
|
||||
SwaggerClient/Model/SWGInlineObject.m
|
||||
SwaggerClient/Model/SWGInlineObject1.h
|
||||
SwaggerClient/Model/SWGInlineObject1.m
|
||||
SwaggerClient/Model/SWGInlineObject1ManagedObject.h
|
||||
SwaggerClient/Model/SWGInlineObject1ManagedObject.m
|
||||
SwaggerClient/Model/SWGInlineObject1ManagedObjectBuilder.h
|
||||
SwaggerClient/Model/SWGInlineObject1ManagedObjectBuilder.m
|
||||
SwaggerClient/Model/SWGInlineObjectManagedObject.h
|
||||
SwaggerClient/Model/SWGInlineObjectManagedObject.m
|
||||
SwaggerClient/Model/SWGInlineObjectManagedObjectBuilder.h
|
||||
SwaggerClient/Model/SWGInlineObjectManagedObjectBuilder.m
|
||||
SwaggerClient/Model/SWGModel.xcdatamodeld/.xccurrentversion
|
||||
SwaggerClient/Model/SWGModel.xcdatamodeld/SWGModel.xcdatamodel/contents
|
||||
SwaggerClient/Model/SWGOrder.h
|
||||
@ -74,8 +62,6 @@ SwaggerClient/Model/SWGUserManagedObject.m
|
||||
SwaggerClient/Model/SWGUserManagedObjectBuilder.h
|
||||
SwaggerClient/Model/SWGUserManagedObjectBuilder.m
|
||||
docs/SWGCategory.md
|
||||
docs/SWGInlineObject.md
|
||||
docs/SWGInlineObject1.md
|
||||
docs/SWGOrder.md
|
||||
docs/SWGPet.md
|
||||
docs/SWGPetApi.md
|
||||
|
@ -42,8 +42,6 @@ Import the following:
|
||||
#import <SwaggerClient/SWGDefaultConfiguration.h>
|
||||
// load models
|
||||
#import <SwaggerClient/SWGCategory.h>
|
||||
#import <SwaggerClient/SWGInlineObject.h>
|
||||
#import <SwaggerClient/SWGInlineObject1.h>
|
||||
#import <SwaggerClient/SWGOrder.h>
|
||||
#import <SwaggerClient/SWGPet.h>
|
||||
#import <SwaggerClient/SWGTag.h>
|
||||
@ -116,8 +114,6 @@ Class | Method | HTTP request | Description
|
||||
## Documentation For Models
|
||||
|
||||
- [SWGCategory](docs/SWGCategory.md)
|
||||
- [SWGInlineObject](docs/SWGInlineObject.md)
|
||||
- [SWGInlineObject1](docs/SWGInlineObject1.md)
|
||||
- [SWGOrder](docs/SWGOrder.md)
|
||||
- [SWGPet](docs/SWGPet.md)
|
||||
- [SWGTag](docs/SWGTag.md)
|
||||
|
@ -5,14 +5,6 @@
|
||||
<attribute name="_id" optional="YES" attributeType="Double" syncable="YES"/>
|
||||
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
|
||||
</entity>
|
||||
<entity name="SWGInlineObjectManagedObject" representedClassName="SWGInlineObjectManagedObject" syncable="YES">
|
||||
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
|
||||
<attribute name="status" optional="YES" attributeType="String" syncable="YES"/>
|
||||
</entity>
|
||||
<entity name="SWGInlineObject1ManagedObject" representedClassName="SWGInlineObject1ManagedObject" syncable="YES">
|
||||
<attribute name="additionalMetadata" optional="YES" attributeType="String" syncable="YES"/>
|
||||
<attribute name="file" optional="YES" attributeType="Binary" syncable="YES"/>
|
||||
</entity>
|
||||
<entity name="SWGOrderManagedObject" representedClassName="SWGOrderManagedObject" syncable="YES">
|
||||
<attribute name="_id" optional="YES" attributeType="Double" syncable="YES"/>
|
||||
<attribute name="petId" optional="YES" attributeType="Double" syncable="YES"/>
|
||||
|
@ -31,10 +31,6 @@ SwaggerClient/Core/SWGSanitizer.h
|
||||
SwaggerClient/Core/SWGSanitizer.m
|
||||
SwaggerClient/Model/SWGCategory.h
|
||||
SwaggerClient/Model/SWGCategory.m
|
||||
SwaggerClient/Model/SWGInlineObject.h
|
||||
SwaggerClient/Model/SWGInlineObject.m
|
||||
SwaggerClient/Model/SWGInlineObject1.h
|
||||
SwaggerClient/Model/SWGInlineObject1.m
|
||||
SwaggerClient/Model/SWGOrder.h
|
||||
SwaggerClient/Model/SWGOrder.m
|
||||
SwaggerClient/Model/SWGPet.h
|
||||
@ -44,8 +40,6 @@ SwaggerClient/Model/SWGTag.m
|
||||
SwaggerClient/Model/SWGUser.h
|
||||
SwaggerClient/Model/SWGUser.m
|
||||
docs/SWGCategory.md
|
||||
docs/SWGInlineObject.md
|
||||
docs/SWGInlineObject1.md
|
||||
docs/SWGOrder.md
|
||||
docs/SWGPet.md
|
||||
docs/SWGPetApi.md
|
||||
|
@ -42,8 +42,6 @@ Import the following:
|
||||
#import <SwaggerClient/SWGDefaultConfiguration.h>
|
||||
// load models
|
||||
#import <SwaggerClient/SWGCategory.h>
|
||||
#import <SwaggerClient/SWGInlineObject.h>
|
||||
#import <SwaggerClient/SWGInlineObject1.h>
|
||||
#import <SwaggerClient/SWGOrder.h>
|
||||
#import <SwaggerClient/SWGPet.h>
|
||||
#import <SwaggerClient/SWGTag.h>
|
||||
@ -116,8 +114,6 @@ Class | Method | HTTP request | Description
|
||||
## Documentation For Models
|
||||
|
||||
- [SWGCategory](docs/SWGCategory.md)
|
||||
- [SWGInlineObject](docs/SWGInlineObject.md)
|
||||
- [SWGInlineObject1](docs/SWGInlineObject1.md)
|
||||
- [SWGOrder](docs/SWGOrder.md)
|
||||
- [SWGPet](docs/SWGPet.md)
|
||||
- [SWGTag](docs/SWGTag.md)
|
||||
|
@ -29,12 +29,6 @@ docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
@ -89,12 +83,6 @@ lib/WWW/OpenAPIClient/Object/Foo.pm
|
||||
lib/WWW/OpenAPIClient/Object/FormatTest.pm
|
||||
lib/WWW/OpenAPIClient/Object/HasOnlyReadOnly.pm
|
||||
lib/WWW/OpenAPIClient/Object/HealthCheckResult.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineObject.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineObject1.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineObject2.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineObject3.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineObject4.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineObject5.pm
|
||||
lib/WWW/OpenAPIClient/Object/InlineResponseDefault.pm
|
||||
lib/WWW/OpenAPIClient/Object/List.pm
|
||||
lib/WWW/OpenAPIClient/Object/MapTest.pm
|
||||
|
@ -256,12 +256,6 @@ use WWW::OpenAPIClient::Object::Foo;
|
||||
use WWW::OpenAPIClient::Object::FormatTest;
|
||||
use WWW::OpenAPIClient::Object::HasOnlyReadOnly;
|
||||
use WWW::OpenAPIClient::Object::HealthCheckResult;
|
||||
use WWW::OpenAPIClient::Object::InlineObject;
|
||||
use WWW::OpenAPIClient::Object::InlineObject1;
|
||||
use WWW::OpenAPIClient::Object::InlineObject2;
|
||||
use WWW::OpenAPIClient::Object::InlineObject3;
|
||||
use WWW::OpenAPIClient::Object::InlineObject4;
|
||||
use WWW::OpenAPIClient::Object::InlineObject5;
|
||||
use WWW::OpenAPIClient::Object::InlineResponseDefault;
|
||||
use WWW::OpenAPIClient::Object::List;
|
||||
use WWW::OpenAPIClient::Object::MapTest;
|
||||
@ -325,12 +319,6 @@ use WWW::OpenAPIClient::Object::Foo;
|
||||
use WWW::OpenAPIClient::Object::FormatTest;
|
||||
use WWW::OpenAPIClient::Object::HasOnlyReadOnly;
|
||||
use WWW::OpenAPIClient::Object::HealthCheckResult;
|
||||
use WWW::OpenAPIClient::Object::InlineObject;
|
||||
use WWW::OpenAPIClient::Object::InlineObject1;
|
||||
use WWW::OpenAPIClient::Object::InlineObject2;
|
||||
use WWW::OpenAPIClient::Object::InlineObject3;
|
||||
use WWW::OpenAPIClient::Object::InlineObject4;
|
||||
use WWW::OpenAPIClient::Object::InlineObject5;
|
||||
use WWW::OpenAPIClient::Object::InlineResponseDefault;
|
||||
use WWW::OpenAPIClient::Object::List;
|
||||
use WWW::OpenAPIClient::Object::MapTest;
|
||||
@ -442,12 +430,6 @@ Class | Method | HTTP request | Description
|
||||
- [WWW::OpenAPIClient::Object::FormatTest](docs/FormatTest.md)
|
||||
- [WWW::OpenAPIClient::Object::HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [WWW::OpenAPIClient::Object::HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineObject](docs/InlineObject.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineObject1](docs/InlineObject1.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineObject2](docs/InlineObject2.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineObject3](docs/InlineObject3.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineObject4](docs/InlineObject4.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineObject5](docs/InlineObject5.md)
|
||||
- [WWW::OpenAPIClient::Object::InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [WWW::OpenAPIClient::Object::List](docs/List.md)
|
||||
- [WWW::OpenAPIClient::Object::MapTest](docs/MapTest.md)
|
||||
|
@ -33,12 +33,6 @@ docs/Model/Foo.md
|
||||
docs/Model/FormatTest.md
|
||||
docs/Model/HasOnlyReadOnly.md
|
||||
docs/Model/HealthCheckResult.md
|
||||
docs/Model/InlineObject.md
|
||||
docs/Model/InlineObject1.md
|
||||
docs/Model/InlineObject2.md
|
||||
docs/Model/InlineObject3.md
|
||||
docs/Model/InlineObject4.md
|
||||
docs/Model/InlineObject5.md
|
||||
docs/Model/InlineResponseDefault.md
|
||||
docs/Model/MapTest.md
|
||||
docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
@ -93,12 +87,6 @@ lib/Model/Foo.php
|
||||
lib/Model/FormatTest.php
|
||||
lib/Model/HasOnlyReadOnly.php
|
||||
lib/Model/HealthCheckResult.php
|
||||
lib/Model/InlineObject.php
|
||||
lib/Model/InlineObject1.php
|
||||
lib/Model/InlineObject2.php
|
||||
lib/Model/InlineObject3.php
|
||||
lib/Model/InlineObject4.php
|
||||
lib/Model/InlineObject5.php
|
||||
lib/Model/InlineResponseDefault.php
|
||||
lib/Model/MapTest.php
|
||||
lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php
|
||||
|
@ -136,12 +136,6 @@ Class | Method | HTTP request | Description
|
||||
- [FormatTest](docs/Model/FormatTest.md)
|
||||
- [HasOnlyReadOnly](docs/Model/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](docs/Model/HealthCheckResult.md)
|
||||
- [InlineObject](docs/Model/InlineObject.md)
|
||||
- [InlineObject1](docs/Model/InlineObject1.md)
|
||||
- [InlineObject2](docs/Model/InlineObject2.md)
|
||||
- [InlineObject3](docs/Model/InlineObject3.md)
|
||||
- [InlineObject4](docs/Model/InlineObject4.md)
|
||||
- [InlineObject5](docs/Model/InlineObject5.md)
|
||||
- [InlineResponseDefault](docs/Model/InlineResponseDefault.md)
|
||||
- [MapTest](docs/Model/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
|
@ -3,8 +3,6 @@ README.md
|
||||
appveyor.yml
|
||||
docs/ApiResponse.md
|
||||
docs/Category.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/Order.md
|
||||
docs/PSPetApi.md
|
||||
docs/PSStoreApi.md
|
||||
@ -18,8 +16,6 @@ src/PSPetstore/Api/PSUserApi.ps1
|
||||
src/PSPetstore/Client/PSConfiguration.ps1
|
||||
src/PSPetstore/Model/ApiResponse.ps1
|
||||
src/PSPetstore/Model/Category.ps1
|
||||
src/PSPetstore/Model/InlineObject.ps1
|
||||
src/PSPetstore/Model/InlineObject1.ps1
|
||||
src/PSPetstore/Model/Order.ps1
|
||||
src/PSPetstore/Model/Pet.ps1
|
||||
src/PSPetstore/Model/Tag.ps1
|
||||
|
@ -81,8 +81,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [PSPetstore/Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [PSPetstore/Model.Category](docs/Category.md)
|
||||
- [PSPetstore/Model.InlineObject](docs/InlineObject.md)
|
||||
- [PSPetstore/Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [PSPetstore/Model.Order](docs/Order.md)
|
||||
- [PSPetstore/Model.Pet](docs/Pet.md)
|
||||
- [PSPetstore/Model.Tag](docs/Tag.md)
|
||||
|
@ -32,12 +32,6 @@ docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
@ -97,12 +91,6 @@ lib/petstore/models/foo.rb
|
||||
lib/petstore/models/format_test.rb
|
||||
lib/petstore/models/has_only_read_only.rb
|
||||
lib/petstore/models/health_check_result.rb
|
||||
lib/petstore/models/inline_object.rb
|
||||
lib/petstore/models/inline_object1.rb
|
||||
lib/petstore/models/inline_object2.rb
|
||||
lib/petstore/models/inline_object3.rb
|
||||
lib/petstore/models/inline_object4.rb
|
||||
lib/petstore/models/inline_object5.rb
|
||||
lib/petstore/models/inline_response_default.rb
|
||||
lib/petstore/models/list.rb
|
||||
lib/petstore/models/map_test.rb
|
||||
|
@ -141,12 +141,6 @@ Class | Method | HTTP request | Description
|
||||
- [Petstore::FormatTest](docs/FormatTest.md)
|
||||
- [Petstore::HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Petstore::HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Petstore::InlineObject](docs/InlineObject.md)
|
||||
- [Petstore::InlineObject1](docs/InlineObject1.md)
|
||||
- [Petstore::InlineObject2](docs/InlineObject2.md)
|
||||
- [Petstore::InlineObject3](docs/InlineObject3.md)
|
||||
- [Petstore::InlineObject4](docs/InlineObject4.md)
|
||||
- [Petstore::InlineObject5](docs/InlineObject5.md)
|
||||
- [Petstore::InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Petstore::List](docs/List.md)
|
||||
- [Petstore::MapTest](docs/MapTest.md)
|
||||
|
@ -40,12 +40,6 @@ require 'petstore/models/foo'
|
||||
require 'petstore/models/format_test'
|
||||
require 'petstore/models/has_only_read_only'
|
||||
require 'petstore/models/health_check_result'
|
||||
require 'petstore/models/inline_object'
|
||||
require 'petstore/models/inline_object1'
|
||||
require 'petstore/models/inline_object2'
|
||||
require 'petstore/models/inline_object3'
|
||||
require 'petstore/models/inline_object4'
|
||||
require 'petstore/models/inline_object5'
|
||||
require 'petstore/models/inline_response_default'
|
||||
require 'petstore/models/list'
|
||||
require 'petstore/models/map_test'
|
||||
|
@ -1,229 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
module Petstore
|
||||
class InlineObject
|
||||
# Updated name of the pet
|
||||
attr_accessor :name
|
||||
|
||||
# Updated status of the pet
|
||||
attr_accessor :status
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
def self.attribute_map
|
||||
{
|
||||
:'name' => :'name',
|
||||
:'status' => :'status'
|
||||
}
|
||||
end
|
||||
|
||||
# Returns all the JSON keys this model knows about
|
||||
def self.acceptable_attributes
|
||||
attribute_map.values
|
||||
end
|
||||
|
||||
# Attribute type mapping.
|
||||
def self.openapi_types
|
||||
{
|
||||
:'name' => :'String',
|
||||
:'status' => :'String'
|
||||
}
|
||||
end
|
||||
|
||||
# List of attributes with nullable: true
|
||||
def self.openapi_nullable
|
||||
Set.new([
|
||||
])
|
||||
end
|
||||
|
||||
# Initializes the object
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
def initialize(attributes = {})
|
||||
if (!attributes.is_a?(Hash))
|
||||
fail ArgumentError, "The input argument (attributes) must be a hash in `Petstore::InlineObject` initialize method"
|
||||
end
|
||||
|
||||
# check to see if the attribute exists and convert string to symbol for hash key
|
||||
attributes = attributes.each_with_object({}) { |(k, v), h|
|
||||
if (!self.class.attribute_map.key?(k.to_sym))
|
||||
fail ArgumentError, "`#{k}` is not a valid attribute in `Petstore::InlineObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
||||
end
|
||||
h[k.to_sym] = v
|
||||
}
|
||||
|
||||
if attributes.key?(:'name')
|
||||
self.name = attributes[:'name']
|
||||
end
|
||||
|
||||
if attributes.key?(:'status')
|
||||
self.status = attributes[:'status']
|
||||
end
|
||||
end
|
||||
|
||||
# Show invalid properties with the reasons. Usually used together with valid?
|
||||
# @return Array for valid properties with the reasons
|
||||
def list_invalid_properties
|
||||
invalid_properties = Array.new
|
||||
invalid_properties
|
||||
end
|
||||
|
||||
# Check to see if the all the properties in the model are valid
|
||||
# @return true if the model is valid
|
||||
def valid?
|
||||
true
|
||||
end
|
||||
|
||||
# Checks equality by comparing each attribute.
|
||||
# @param [Object] Object to be compared
|
||||
def ==(o)
|
||||
return true if self.equal?(o)
|
||||
self.class == o.class &&
|
||||
name == o.name &&
|
||||
status == o.status
|
||||
end
|
||||
|
||||
# @see the `==` method
|
||||
# @param [Object] Object to be compared
|
||||
def eql?(o)
|
||||
self == o
|
||||
end
|
||||
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Integer] Hash code
|
||||
def hash
|
||||
[name, status].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def self.build_from_hash(attributes)
|
||||
new.build_from_hash(attributes)
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def build_from_hash(attributes)
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
||||
self.send("#{key}=", nil)
|
||||
elsif type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
end
|
||||
elsif !attributes[self.class.attribute_map[key]].nil?
|
||||
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
# Deserializes the data based on type
|
||||
# @param string type Data type
|
||||
# @param string value Value to be deserialized
|
||||
# @return [Object] Deserialized data
|
||||
def _deserialize(type, value)
|
||||
case type.to_sym
|
||||
when :Time
|
||||
Time.parse(value)
|
||||
when :Date
|
||||
Date.parse(value)
|
||||
when :String
|
||||
value.to_s
|
||||
when :Integer
|
||||
value.to_i
|
||||
when :Float
|
||||
value.to_f
|
||||
when :Boolean
|
||||
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
when :Object
|
||||
# generic object (usually a Hash), return directly
|
||||
value
|
||||
when /\AArray<(?<inner_type>.+)>\z/
|
||||
inner_type = Regexp.last_match[:inner_type]
|
||||
value.map { |v| _deserialize(inner_type, v) }
|
||||
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
||||
k_type = Regexp.last_match[:k_type]
|
||||
v_type = Regexp.last_match[:v_type]
|
||||
{}.tap do |hash|
|
||||
value.each do |k, v|
|
||||
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
||||
end
|
||||
end
|
||||
else # model
|
||||
# models (e.g. Pet) or oneOf
|
||||
klass = Petstore.const_get(type)
|
||||
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns the string representation of the object
|
||||
# @return [String] String presentation of the object
|
||||
def to_s
|
||||
to_hash.to_s
|
||||
end
|
||||
|
||||
# to_body is an alias to to_hash (backward compatibility)
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_body
|
||||
to_hash
|
||||
end
|
||||
|
||||
# Returns the object in the form of hash
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_hash
|
||||
hash = {}
|
||||
self.class.attribute_map.each_pair do |attr, param|
|
||||
value = self.send(attr)
|
||||
if value.nil?
|
||||
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||
end
|
||||
|
||||
hash[param] = _to_hash(value)
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
# Outputs non-array value in the form of hash
|
||||
# For object, use to_hash. Otherwise, just return the value
|
||||
# @param [Object] value Any valid value
|
||||
# @return [Hash] Returns the value in the form of hash
|
||||
def _to_hash(value)
|
||||
if value.is_a?(Array)
|
||||
value.compact.map { |v| _to_hash(v) }
|
||||
elsif value.is_a?(Hash)
|
||||
{}.tap do |hash|
|
||||
value.each { |k, v| hash[k] = _to_hash(v) }
|
||||
end
|
||||
elsif value.respond_to? :to_hash
|
||||
value.to_hash
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -1,229 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
module Petstore
|
||||
class InlineObject1
|
||||
# Additional data to pass to server
|
||||
attr_accessor :additional_metadata
|
||||
|
||||
# file to upload
|
||||
attr_accessor :file
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
def self.attribute_map
|
||||
{
|
||||
:'additional_metadata' => :'additionalMetadata',
|
||||
:'file' => :'file'
|
||||
}
|
||||
end
|
||||
|
||||
# Returns all the JSON keys this model knows about
|
||||
def self.acceptable_attributes
|
||||
attribute_map.values
|
||||
end
|
||||
|
||||
# Attribute type mapping.
|
||||
def self.openapi_types
|
||||
{
|
||||
:'additional_metadata' => :'String',
|
||||
:'file' => :'File'
|
||||
}
|
||||
end
|
||||
|
||||
# List of attributes with nullable: true
|
||||
def self.openapi_nullable
|
||||
Set.new([
|
||||
])
|
||||
end
|
||||
|
||||
# Initializes the object
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
def initialize(attributes = {})
|
||||
if (!attributes.is_a?(Hash))
|
||||
fail ArgumentError, "The input argument (attributes) must be a hash in `Petstore::InlineObject1` initialize method"
|
||||
end
|
||||
|
||||
# check to see if the attribute exists and convert string to symbol for hash key
|
||||
attributes = attributes.each_with_object({}) { |(k, v), h|
|
||||
if (!self.class.attribute_map.key?(k.to_sym))
|
||||
fail ArgumentError, "`#{k}` is not a valid attribute in `Petstore::InlineObject1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
||||
end
|
||||
h[k.to_sym] = v
|
||||
}
|
||||
|
||||
if attributes.key?(:'additional_metadata')
|
||||
self.additional_metadata = attributes[:'additional_metadata']
|
||||
end
|
||||
|
||||
if attributes.key?(:'file')
|
||||
self.file = attributes[:'file']
|
||||
end
|
||||
end
|
||||
|
||||
# Show invalid properties with the reasons. Usually used together with valid?
|
||||
# @return Array for valid properties with the reasons
|
||||
def list_invalid_properties
|
||||
invalid_properties = Array.new
|
||||
invalid_properties
|
||||
end
|
||||
|
||||
# Check to see if the all the properties in the model are valid
|
||||
# @return true if the model is valid
|
||||
def valid?
|
||||
true
|
||||
end
|
||||
|
||||
# Checks equality by comparing each attribute.
|
||||
# @param [Object] Object to be compared
|
||||
def ==(o)
|
||||
return true if self.equal?(o)
|
||||
self.class == o.class &&
|
||||
additional_metadata == o.additional_metadata &&
|
||||
file == o.file
|
||||
end
|
||||
|
||||
# @see the `==` method
|
||||
# @param [Object] Object to be compared
|
||||
def eql?(o)
|
||||
self == o
|
||||
end
|
||||
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Integer] Hash code
|
||||
def hash
|
||||
[additional_metadata, file].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def self.build_from_hash(attributes)
|
||||
new.build_from_hash(attributes)
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def build_from_hash(attributes)
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
||||
self.send("#{key}=", nil)
|
||||
elsif type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
end
|
||||
elsif !attributes[self.class.attribute_map[key]].nil?
|
||||
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
# Deserializes the data based on type
|
||||
# @param string type Data type
|
||||
# @param string value Value to be deserialized
|
||||
# @return [Object] Deserialized data
|
||||
def _deserialize(type, value)
|
||||
case type.to_sym
|
||||
when :Time
|
||||
Time.parse(value)
|
||||
when :Date
|
||||
Date.parse(value)
|
||||
when :String
|
||||
value.to_s
|
||||
when :Integer
|
||||
value.to_i
|
||||
when :Float
|
||||
value.to_f
|
||||
when :Boolean
|
||||
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
when :Object
|
||||
# generic object (usually a Hash), return directly
|
||||
value
|
||||
when /\AArray<(?<inner_type>.+)>\z/
|
||||
inner_type = Regexp.last_match[:inner_type]
|
||||
value.map { |v| _deserialize(inner_type, v) }
|
||||
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
||||
k_type = Regexp.last_match[:k_type]
|
||||
v_type = Regexp.last_match[:v_type]
|
||||
{}.tap do |hash|
|
||||
value.each do |k, v|
|
||||
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
||||
end
|
||||
end
|
||||
else # model
|
||||
# models (e.g. Pet) or oneOf
|
||||
klass = Petstore.const_get(type)
|
||||
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns the string representation of the object
|
||||
# @return [String] String presentation of the object
|
||||
def to_s
|
||||
to_hash.to_s
|
||||
end
|
||||
|
||||
# to_body is an alias to to_hash (backward compatibility)
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_body
|
||||
to_hash
|
||||
end
|
||||
|
||||
# Returns the object in the form of hash
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_hash
|
||||
hash = {}
|
||||
self.class.attribute_map.each_pair do |attr, param|
|
||||
value = self.send(attr)
|
||||
if value.nil?
|
||||
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||
end
|
||||
|
||||
hash[param] = _to_hash(value)
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
# Outputs non-array value in the form of hash
|
||||
# For object, use to_hash. Otherwise, just return the value
|
||||
# @param [Object] value Any valid value
|
||||
# @return [Hash] Returns the value in the form of hash
|
||||
def _to_hash(value)
|
||||
if value.is_a?(Array)
|
||||
value.compact.map { |v| _to_hash(v) }
|
||||
elsif value.is_a?(Hash)
|
||||
{}.tap do |hash|
|
||||
value.each { |k, v| hash[k] = _to_hash(v) }
|
||||
end
|
||||
elsif value.respond_to? :to_hash
|
||||
value.to_hash
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -1,267 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
module Petstore
|
||||
class InlineObject2
|
||||
# Form parameter enum test (string array)
|
||||
attr_accessor :enum_form_string_array
|
||||
|
||||
# Form parameter enum test (string)
|
||||
attr_accessor :enum_form_string
|
||||
|
||||
class EnumAttributeValidator
|
||||
attr_reader :datatype
|
||||
attr_reader :allowable_values
|
||||
|
||||
def initialize(datatype, allowable_values)
|
||||
@allowable_values = allowable_values.map do |value|
|
||||
case datatype.to_s
|
||||
when /Integer/i
|
||||
value.to_i
|
||||
when /Float/i
|
||||
value.to_f
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def valid?(value)
|
||||
!value || allowable_values.include?(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
def self.attribute_map
|
||||
{
|
||||
:'enum_form_string_array' => :'enum_form_string_array',
|
||||
:'enum_form_string' => :'enum_form_string'
|
||||
}
|
||||
end
|
||||
|
||||
# Returns all the JSON keys this model knows about
|
||||
def self.acceptable_attributes
|
||||
attribute_map.values
|
||||
end
|
||||
|
||||
# Attribute type mapping.
|
||||
def self.openapi_types
|
||||
{
|
||||
:'enum_form_string_array' => :'Array<String>',
|
||||
:'enum_form_string' => :'String'
|
||||
}
|
||||
end
|
||||
|
||||
# List of attributes with nullable: true
|
||||
def self.openapi_nullable
|
||||
Set.new([
|
||||
])
|
||||
end
|
||||
|
||||
# Initializes the object
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
def initialize(attributes = {})
|
||||
if (!attributes.is_a?(Hash))
|
||||
fail ArgumentError, "The input argument (attributes) must be a hash in `Petstore::InlineObject2` initialize method"
|
||||
end
|
||||
|
||||
# check to see if the attribute exists and convert string to symbol for hash key
|
||||
attributes = attributes.each_with_object({}) { |(k, v), h|
|
||||
if (!self.class.attribute_map.key?(k.to_sym))
|
||||
fail ArgumentError, "`#{k}` is not a valid attribute in `Petstore::InlineObject2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
||||
end
|
||||
h[k.to_sym] = v
|
||||
}
|
||||
|
||||
if attributes.key?(:'enum_form_string_array')
|
||||
if (value = attributes[:'enum_form_string_array']).is_a?(Array)
|
||||
self.enum_form_string_array = value
|
||||
end
|
||||
end
|
||||
|
||||
if attributes.key?(:'enum_form_string')
|
||||
self.enum_form_string = attributes[:'enum_form_string']
|
||||
else
|
||||
self.enum_form_string = '-efg'
|
||||
end
|
||||
end
|
||||
|
||||
# Show invalid properties with the reasons. Usually used together with valid?
|
||||
# @return Array for valid properties with the reasons
|
||||
def list_invalid_properties
|
||||
invalid_properties = Array.new
|
||||
invalid_properties
|
||||
end
|
||||
|
||||
# Check to see if the all the properties in the model are valid
|
||||
# @return true if the model is valid
|
||||
def valid?
|
||||
enum_form_string_validator = EnumAttributeValidator.new('String', ["_abc", "-efg", "(xyz)"])
|
||||
return false unless enum_form_string_validator.valid?(@enum_form_string)
|
||||
true
|
||||
end
|
||||
|
||||
# Custom attribute writer method checking allowed values (enum).
|
||||
# @param [Object] enum_form_string Object to be assigned
|
||||
def enum_form_string=(enum_form_string)
|
||||
validator = EnumAttributeValidator.new('String', ["_abc", "-efg", "(xyz)"])
|
||||
unless validator.valid?(enum_form_string)
|
||||
fail ArgumentError, "invalid value for \"enum_form_string\", must be one of #{validator.allowable_values}."
|
||||
end
|
||||
@enum_form_string = enum_form_string
|
||||
end
|
||||
|
||||
# Checks equality by comparing each attribute.
|
||||
# @param [Object] Object to be compared
|
||||
def ==(o)
|
||||
return true if self.equal?(o)
|
||||
self.class == o.class &&
|
||||
enum_form_string_array == o.enum_form_string_array &&
|
||||
enum_form_string == o.enum_form_string
|
||||
end
|
||||
|
||||
# @see the `==` method
|
||||
# @param [Object] Object to be compared
|
||||
def eql?(o)
|
||||
self == o
|
||||
end
|
||||
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Integer] Hash code
|
||||
def hash
|
||||
[enum_form_string_array, enum_form_string].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def self.build_from_hash(attributes)
|
||||
new.build_from_hash(attributes)
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def build_from_hash(attributes)
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
||||
self.send("#{key}=", nil)
|
||||
elsif type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
end
|
||||
elsif !attributes[self.class.attribute_map[key]].nil?
|
||||
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
# Deserializes the data based on type
|
||||
# @param string type Data type
|
||||
# @param string value Value to be deserialized
|
||||
# @return [Object] Deserialized data
|
||||
def _deserialize(type, value)
|
||||
case type.to_sym
|
||||
when :Time
|
||||
Time.parse(value)
|
||||
when :Date
|
||||
Date.parse(value)
|
||||
when :String
|
||||
value.to_s
|
||||
when :Integer
|
||||
value.to_i
|
||||
when :Float
|
||||
value.to_f
|
||||
when :Boolean
|
||||
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
when :Object
|
||||
# generic object (usually a Hash), return directly
|
||||
value
|
||||
when /\AArray<(?<inner_type>.+)>\z/
|
||||
inner_type = Regexp.last_match[:inner_type]
|
||||
value.map { |v| _deserialize(inner_type, v) }
|
||||
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
||||
k_type = Regexp.last_match[:k_type]
|
||||
v_type = Regexp.last_match[:v_type]
|
||||
{}.tap do |hash|
|
||||
value.each do |k, v|
|
||||
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
||||
end
|
||||
end
|
||||
else # model
|
||||
# models (e.g. Pet) or oneOf
|
||||
klass = Petstore.const_get(type)
|
||||
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns the string representation of the object
|
||||
# @return [String] String presentation of the object
|
||||
def to_s
|
||||
to_hash.to_s
|
||||
end
|
||||
|
||||
# to_body is an alias to to_hash (backward compatibility)
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_body
|
||||
to_hash
|
||||
end
|
||||
|
||||
# Returns the object in the form of hash
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_hash
|
||||
hash = {}
|
||||
self.class.attribute_map.each_pair do |attr, param|
|
||||
value = self.send(attr)
|
||||
if value.nil?
|
||||
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||
end
|
||||
|
||||
hash[param] = _to_hash(value)
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
# Outputs non-array value in the form of hash
|
||||
# For object, use to_hash. Otherwise, just return the value
|
||||
# @param [Object] value Any valid value
|
||||
# @return [Hash] Returns the value in the form of hash
|
||||
def _to_hash(value)
|
||||
if value.is_a?(Array)
|
||||
value.compact.map { |v| _to_hash(v) }
|
||||
elsif value.is_a?(Hash)
|
||||
{}.tap do |hash|
|
||||
value.each { |k, v| hash[k] = _to_hash(v) }
|
||||
end
|
||||
elsif value.respond_to? :to_hash
|
||||
value.to_hash
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -1,550 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
module Petstore
|
||||
class InlineObject3
|
||||
# None
|
||||
attr_accessor :integer
|
||||
|
||||
# None
|
||||
attr_accessor :int32
|
||||
|
||||
# None
|
||||
attr_accessor :int64
|
||||
|
||||
# None
|
||||
attr_accessor :number
|
||||
|
||||
# None
|
||||
attr_accessor :float
|
||||
|
||||
# None
|
||||
attr_accessor :double
|
||||
|
||||
# None
|
||||
attr_accessor :string
|
||||
|
||||
# None
|
||||
attr_accessor :pattern_without_delimiter
|
||||
|
||||
# None
|
||||
attr_accessor :byte
|
||||
|
||||
# None
|
||||
attr_accessor :binary
|
||||
|
||||
# None
|
||||
attr_accessor :date
|
||||
|
||||
# None
|
||||
attr_accessor :date_time
|
||||
|
||||
# None
|
||||
attr_accessor :password
|
||||
|
||||
# None
|
||||
attr_accessor :callback
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
def self.attribute_map
|
||||
{
|
||||
:'integer' => :'integer',
|
||||
:'int32' => :'int32',
|
||||
:'int64' => :'int64',
|
||||
:'number' => :'number',
|
||||
:'float' => :'float',
|
||||
:'double' => :'double',
|
||||
:'string' => :'string',
|
||||
:'pattern_without_delimiter' => :'pattern_without_delimiter',
|
||||
:'byte' => :'byte',
|
||||
:'binary' => :'binary',
|
||||
:'date' => :'date',
|
||||
:'date_time' => :'dateTime',
|
||||
:'password' => :'password',
|
||||
:'callback' => :'callback'
|
||||
}
|
||||
end
|
||||
|
||||
# Returns all the JSON keys this model knows about
|
||||
def self.acceptable_attributes
|
||||
attribute_map.values
|
||||
end
|
||||
|
||||
# Attribute type mapping.
|
||||
def self.openapi_types
|
||||
{
|
||||
:'integer' => :'Integer',
|
||||
:'int32' => :'Integer',
|
||||
:'int64' => :'Integer',
|
||||
:'number' => :'Float',
|
||||
:'float' => :'Float',
|
||||
:'double' => :'Float',
|
||||
:'string' => :'String',
|
||||
:'pattern_without_delimiter' => :'String',
|
||||
:'byte' => :'String',
|
||||
:'binary' => :'File',
|
||||
:'date' => :'Date',
|
||||
:'date_time' => :'Time',
|
||||
:'password' => :'String',
|
||||
:'callback' => :'String'
|
||||
}
|
||||
end
|
||||
|
||||
# List of attributes with nullable: true
|
||||
def self.openapi_nullable
|
||||
Set.new([
|
||||
])
|
||||
end
|
||||
|
||||
# Initializes the object
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
def initialize(attributes = {})
|
||||
if (!attributes.is_a?(Hash))
|
||||
fail ArgumentError, "The input argument (attributes) must be a hash in `Petstore::InlineObject3` initialize method"
|
||||
end
|
||||
|
||||
# check to see if the attribute exists and convert string to symbol for hash key
|
||||
attributes = attributes.each_with_object({}) { |(k, v), h|
|
||||
if (!self.class.attribute_map.key?(k.to_sym))
|
||||
fail ArgumentError, "`#{k}` is not a valid attribute in `Petstore::InlineObject3`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
||||
end
|
||||
h[k.to_sym] = v
|
||||
}
|
||||
|
||||
if attributes.key?(:'integer')
|
||||
self.integer = attributes[:'integer']
|
||||
end
|
||||
|
||||
if attributes.key?(:'int32')
|
||||
self.int32 = attributes[:'int32']
|
||||
end
|
||||
|
||||
if attributes.key?(:'int64')
|
||||
self.int64 = attributes[:'int64']
|
||||
end
|
||||
|
||||
if attributes.key?(:'number')
|
||||
self.number = attributes[:'number']
|
||||
end
|
||||
|
||||
if attributes.key?(:'float')
|
||||
self.float = attributes[:'float']
|
||||
end
|
||||
|
||||
if attributes.key?(:'double')
|
||||
self.double = attributes[:'double']
|
||||
end
|
||||
|
||||
if attributes.key?(:'string')
|
||||
self.string = attributes[:'string']
|
||||
end
|
||||
|
||||
if attributes.key?(:'pattern_without_delimiter')
|
||||
self.pattern_without_delimiter = attributes[:'pattern_without_delimiter']
|
||||
end
|
||||
|
||||
if attributes.key?(:'byte')
|
||||
self.byte = attributes[:'byte']
|
||||
end
|
||||
|
||||
if attributes.key?(:'binary')
|
||||
self.binary = attributes[:'binary']
|
||||
end
|
||||
|
||||
if attributes.key?(:'date')
|
||||
self.date = attributes[:'date']
|
||||
end
|
||||
|
||||
if attributes.key?(:'date_time')
|
||||
self.date_time = attributes[:'date_time']
|
||||
end
|
||||
|
||||
if attributes.key?(:'password')
|
||||
self.password = attributes[:'password']
|
||||
end
|
||||
|
||||
if attributes.key?(:'callback')
|
||||
self.callback = attributes[:'callback']
|
||||
end
|
||||
end
|
||||
|
||||
# Show invalid properties with the reasons. Usually used together with valid?
|
||||
# @return Array for valid properties with the reasons
|
||||
def list_invalid_properties
|
||||
invalid_properties = Array.new
|
||||
if !@integer.nil? && @integer > 100
|
||||
invalid_properties.push('invalid value for "integer", must be smaller than or equal to 100.')
|
||||
end
|
||||
|
||||
if !@integer.nil? && @integer < 10
|
||||
invalid_properties.push('invalid value for "integer", must be greater than or equal to 10.')
|
||||
end
|
||||
|
||||
if !@int32.nil? && @int32 > 200
|
||||
invalid_properties.push('invalid value for "int32", must be smaller than or equal to 200.')
|
||||
end
|
||||
|
||||
if !@int32.nil? && @int32 < 20
|
||||
invalid_properties.push('invalid value for "int32", must be greater than or equal to 20.')
|
||||
end
|
||||
|
||||
if @number.nil?
|
||||
invalid_properties.push('invalid value for "number", number cannot be nil.')
|
||||
end
|
||||
|
||||
if @number > 543.2
|
||||
invalid_properties.push('invalid value for "number", must be smaller than or equal to 543.2.')
|
||||
end
|
||||
|
||||
if @number < 32.1
|
||||
invalid_properties.push('invalid value for "number", must be greater than or equal to 32.1.')
|
||||
end
|
||||
|
||||
if !@float.nil? && @float > 987.6
|
||||
invalid_properties.push('invalid value for "float", must be smaller than or equal to 987.6.')
|
||||
end
|
||||
|
||||
if @double.nil?
|
||||
invalid_properties.push('invalid value for "double", double cannot be nil.')
|
||||
end
|
||||
|
||||
if @double > 123.4
|
||||
invalid_properties.push('invalid value for "double", must be smaller than or equal to 123.4.')
|
||||
end
|
||||
|
||||
if @double < 67.8
|
||||
invalid_properties.push('invalid value for "double", must be greater than or equal to 67.8.')
|
||||
end
|
||||
|
||||
pattern = Regexp.new(/[a-z]/i)
|
||||
if !@string.nil? && @string !~ pattern
|
||||
invalid_properties.push("invalid value for \"string\", must conform to the pattern #{pattern}.")
|
||||
end
|
||||
|
||||
if @pattern_without_delimiter.nil?
|
||||
invalid_properties.push('invalid value for "pattern_without_delimiter", pattern_without_delimiter cannot be nil.')
|
||||
end
|
||||
|
||||
pattern = Regexp.new(/^[A-Z].*/)
|
||||
if @pattern_without_delimiter !~ pattern
|
||||
invalid_properties.push("invalid value for \"pattern_without_delimiter\", must conform to the pattern #{pattern}.")
|
||||
end
|
||||
|
||||
if @byte.nil?
|
||||
invalid_properties.push('invalid value for "byte", byte cannot be nil.')
|
||||
end
|
||||
|
||||
if !@password.nil? && @password.to_s.length > 64
|
||||
invalid_properties.push('invalid value for "password", the character length must be smaller than or equal to 64.')
|
||||
end
|
||||
|
||||
if !@password.nil? && @password.to_s.length < 10
|
||||
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.')
|
||||
end
|
||||
|
||||
invalid_properties
|
||||
end
|
||||
|
||||
# Check to see if the all the properties in the model are valid
|
||||
# @return true if the model is valid
|
||||
def valid?
|
||||
return false if !@integer.nil? && @integer > 100
|
||||
return false if !@integer.nil? && @integer < 10
|
||||
return false if !@int32.nil? && @int32 > 200
|
||||
return false if !@int32.nil? && @int32 < 20
|
||||
return false if @number.nil?
|
||||
return false if @number > 543.2
|
||||
return false if @number < 32.1
|
||||
return false if !@float.nil? && @float > 987.6
|
||||
return false if @double.nil?
|
||||
return false if @double > 123.4
|
||||
return false if @double < 67.8
|
||||
return false if !@string.nil? && @string !~ Regexp.new(/[a-z]/i)
|
||||
return false if @pattern_without_delimiter.nil?
|
||||
return false if @pattern_without_delimiter !~ Regexp.new(/^[A-Z].*/)
|
||||
return false if @byte.nil?
|
||||
return false if !@password.nil? && @password.to_s.length > 64
|
||||
return false if !@password.nil? && @password.to_s.length < 10
|
||||
true
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] integer Value to be assigned
|
||||
def integer=(integer)
|
||||
if !integer.nil? && integer > 100
|
||||
fail ArgumentError, 'invalid value for "integer", must be smaller than or equal to 100.'
|
||||
end
|
||||
|
||||
if !integer.nil? && integer < 10
|
||||
fail ArgumentError, 'invalid value for "integer", must be greater than or equal to 10.'
|
||||
end
|
||||
|
||||
@integer = integer
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] int32 Value to be assigned
|
||||
def int32=(int32)
|
||||
if !int32.nil? && int32 > 200
|
||||
fail ArgumentError, 'invalid value for "int32", must be smaller than or equal to 200.'
|
||||
end
|
||||
|
||||
if !int32.nil? && int32 < 20
|
||||
fail ArgumentError, 'invalid value for "int32", must be greater than or equal to 20.'
|
||||
end
|
||||
|
||||
@int32 = int32
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] number Value to be assigned
|
||||
def number=(number)
|
||||
if number.nil?
|
||||
fail ArgumentError, 'number cannot be nil'
|
||||
end
|
||||
|
||||
if number > 543.2
|
||||
fail ArgumentError, 'invalid value for "number", must be smaller than or equal to 543.2.'
|
||||
end
|
||||
|
||||
if number < 32.1
|
||||
fail ArgumentError, 'invalid value for "number", must be greater than or equal to 32.1.'
|
||||
end
|
||||
|
||||
@number = number
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] float Value to be assigned
|
||||
def float=(float)
|
||||
if !float.nil? && float > 987.6
|
||||
fail ArgumentError, 'invalid value for "float", must be smaller than or equal to 987.6.'
|
||||
end
|
||||
|
||||
@float = float
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] double Value to be assigned
|
||||
def double=(double)
|
||||
if double.nil?
|
||||
fail ArgumentError, 'double cannot be nil'
|
||||
end
|
||||
|
||||
if double > 123.4
|
||||
fail ArgumentError, 'invalid value for "double", must be smaller than or equal to 123.4.'
|
||||
end
|
||||
|
||||
if double < 67.8
|
||||
fail ArgumentError, 'invalid value for "double", must be greater than or equal to 67.8.'
|
||||
end
|
||||
|
||||
@double = double
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] string Value to be assigned
|
||||
def string=(string)
|
||||
pattern = Regexp.new(/[a-z]/i)
|
||||
if !string.nil? && string !~ pattern
|
||||
fail ArgumentError, "invalid value for \"string\", must conform to the pattern #{pattern}."
|
||||
end
|
||||
|
||||
@string = string
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] pattern_without_delimiter Value to be assigned
|
||||
def pattern_without_delimiter=(pattern_without_delimiter)
|
||||
if pattern_without_delimiter.nil?
|
||||
fail ArgumentError, 'pattern_without_delimiter cannot be nil'
|
||||
end
|
||||
|
||||
pattern = Regexp.new(/^[A-Z].*/)
|
||||
if pattern_without_delimiter !~ pattern
|
||||
fail ArgumentError, "invalid value for \"pattern_without_delimiter\", must conform to the pattern #{pattern}."
|
||||
end
|
||||
|
||||
@pattern_without_delimiter = pattern_without_delimiter
|
||||
end
|
||||
|
||||
# Custom attribute writer method with validation
|
||||
# @param [Object] password Value to be assigned
|
||||
def password=(password)
|
||||
if !password.nil? && password.to_s.length > 64
|
||||
fail ArgumentError, 'invalid value for "password", the character length must be smaller than or equal to 64.'
|
||||
end
|
||||
|
||||
if !password.nil? && password.to_s.length < 10
|
||||
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.'
|
||||
end
|
||||
|
||||
@password = password
|
||||
end
|
||||
|
||||
# Checks equality by comparing each attribute.
|
||||
# @param [Object] Object to be compared
|
||||
def ==(o)
|
||||
return true if self.equal?(o)
|
||||
self.class == o.class &&
|
||||
integer == o.integer &&
|
||||
int32 == o.int32 &&
|
||||
int64 == o.int64 &&
|
||||
number == o.number &&
|
||||
float == o.float &&
|
||||
double == o.double &&
|
||||
string == o.string &&
|
||||
pattern_without_delimiter == o.pattern_without_delimiter &&
|
||||
byte == o.byte &&
|
||||
binary == o.binary &&
|
||||
date == o.date &&
|
||||
date_time == o.date_time &&
|
||||
password == o.password &&
|
||||
callback == o.callback
|
||||
end
|
||||
|
||||
# @see the `==` method
|
||||
# @param [Object] Object to be compared
|
||||
def eql?(o)
|
||||
self == o
|
||||
end
|
||||
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Integer] Hash code
|
||||
def hash
|
||||
[integer, int32, int64, number, float, double, string, pattern_without_delimiter, byte, binary, date, date_time, password, callback].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def self.build_from_hash(attributes)
|
||||
new.build_from_hash(attributes)
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def build_from_hash(attributes)
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
||||
self.send("#{key}=", nil)
|
||||
elsif type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
end
|
||||
elsif !attributes[self.class.attribute_map[key]].nil?
|
||||
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
# Deserializes the data based on type
|
||||
# @param string type Data type
|
||||
# @param string value Value to be deserialized
|
||||
# @return [Object] Deserialized data
|
||||
def _deserialize(type, value)
|
||||
case type.to_sym
|
||||
when :Time
|
||||
Time.parse(value)
|
||||
when :Date
|
||||
Date.parse(value)
|
||||
when :String
|
||||
value.to_s
|
||||
when :Integer
|
||||
value.to_i
|
||||
when :Float
|
||||
value.to_f
|
||||
when :Boolean
|
||||
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
when :Object
|
||||
# generic object (usually a Hash), return directly
|
||||
value
|
||||
when /\AArray<(?<inner_type>.+)>\z/
|
||||
inner_type = Regexp.last_match[:inner_type]
|
||||
value.map { |v| _deserialize(inner_type, v) }
|
||||
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
||||
k_type = Regexp.last_match[:k_type]
|
||||
v_type = Regexp.last_match[:v_type]
|
||||
{}.tap do |hash|
|
||||
value.each do |k, v|
|
||||
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
||||
end
|
||||
end
|
||||
else # model
|
||||
# models (e.g. Pet) or oneOf
|
||||
klass = Petstore.const_get(type)
|
||||
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns the string representation of the object
|
||||
# @return [String] String presentation of the object
|
||||
def to_s
|
||||
to_hash.to_s
|
||||
end
|
||||
|
||||
# to_body is an alias to to_hash (backward compatibility)
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_body
|
||||
to_hash
|
||||
end
|
||||
|
||||
# Returns the object in the form of hash
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_hash
|
||||
hash = {}
|
||||
self.class.attribute_map.each_pair do |attr, param|
|
||||
value = self.send(attr)
|
||||
if value.nil?
|
||||
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||
end
|
||||
|
||||
hash[param] = _to_hash(value)
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
# Outputs non-array value in the form of hash
|
||||
# For object, use to_hash. Otherwise, just return the value
|
||||
# @param [Object] value Any valid value
|
||||
# @return [Hash] Returns the value in the form of hash
|
||||
def _to_hash(value)
|
||||
if value.is_a?(Array)
|
||||
value.compact.map { |v| _to_hash(v) }
|
||||
elsif value.is_a?(Hash)
|
||||
{}.tap do |hash|
|
||||
value.each { |k, v| hash[k] = _to_hash(v) }
|
||||
end
|
||||
elsif value.respond_to? :to_hash
|
||||
value.to_hash
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -1,239 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
module Petstore
|
||||
class InlineObject4
|
||||
# field1
|
||||
attr_accessor :param
|
||||
|
||||
# field2
|
||||
attr_accessor :param2
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
def self.attribute_map
|
||||
{
|
||||
:'param' => :'param',
|
||||
:'param2' => :'param2'
|
||||
}
|
||||
end
|
||||
|
||||
# Returns all the JSON keys this model knows about
|
||||
def self.acceptable_attributes
|
||||
attribute_map.values
|
||||
end
|
||||
|
||||
# Attribute type mapping.
|
||||
def self.openapi_types
|
||||
{
|
||||
:'param' => :'String',
|
||||
:'param2' => :'String'
|
||||
}
|
||||
end
|
||||
|
||||
# List of attributes with nullable: true
|
||||
def self.openapi_nullable
|
||||
Set.new([
|
||||
])
|
||||
end
|
||||
|
||||
# Initializes the object
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
def initialize(attributes = {})
|
||||
if (!attributes.is_a?(Hash))
|
||||
fail ArgumentError, "The input argument (attributes) must be a hash in `Petstore::InlineObject4` initialize method"
|
||||
end
|
||||
|
||||
# check to see if the attribute exists and convert string to symbol for hash key
|
||||
attributes = attributes.each_with_object({}) { |(k, v), h|
|
||||
if (!self.class.attribute_map.key?(k.to_sym))
|
||||
fail ArgumentError, "`#{k}` is not a valid attribute in `Petstore::InlineObject4`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
||||
end
|
||||
h[k.to_sym] = v
|
||||
}
|
||||
|
||||
if attributes.key?(:'param')
|
||||
self.param = attributes[:'param']
|
||||
end
|
||||
|
||||
if attributes.key?(:'param2')
|
||||
self.param2 = attributes[:'param2']
|
||||
end
|
||||
end
|
||||
|
||||
# Show invalid properties with the reasons. Usually used together with valid?
|
||||
# @return Array for valid properties with the reasons
|
||||
def list_invalid_properties
|
||||
invalid_properties = Array.new
|
||||
if @param.nil?
|
||||
invalid_properties.push('invalid value for "param", param cannot be nil.')
|
||||
end
|
||||
|
||||
if @param2.nil?
|
||||
invalid_properties.push('invalid value for "param2", param2 cannot be nil.')
|
||||
end
|
||||
|
||||
invalid_properties
|
||||
end
|
||||
|
||||
# Check to see if the all the properties in the model are valid
|
||||
# @return true if the model is valid
|
||||
def valid?
|
||||
return false if @param.nil?
|
||||
return false if @param2.nil?
|
||||
true
|
||||
end
|
||||
|
||||
# Checks equality by comparing each attribute.
|
||||
# @param [Object] Object to be compared
|
||||
def ==(o)
|
||||
return true if self.equal?(o)
|
||||
self.class == o.class &&
|
||||
param == o.param &&
|
||||
param2 == o.param2
|
||||
end
|
||||
|
||||
# @see the `==` method
|
||||
# @param [Object] Object to be compared
|
||||
def eql?(o)
|
||||
self == o
|
||||
end
|
||||
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Integer] Hash code
|
||||
def hash
|
||||
[param, param2].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def self.build_from_hash(attributes)
|
||||
new.build_from_hash(attributes)
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def build_from_hash(attributes)
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
||||
self.send("#{key}=", nil)
|
||||
elsif type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
end
|
||||
elsif !attributes[self.class.attribute_map[key]].nil?
|
||||
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
# Deserializes the data based on type
|
||||
# @param string type Data type
|
||||
# @param string value Value to be deserialized
|
||||
# @return [Object] Deserialized data
|
||||
def _deserialize(type, value)
|
||||
case type.to_sym
|
||||
when :Time
|
||||
Time.parse(value)
|
||||
when :Date
|
||||
Date.parse(value)
|
||||
when :String
|
||||
value.to_s
|
||||
when :Integer
|
||||
value.to_i
|
||||
when :Float
|
||||
value.to_f
|
||||
when :Boolean
|
||||
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
when :Object
|
||||
# generic object (usually a Hash), return directly
|
||||
value
|
||||
when /\AArray<(?<inner_type>.+)>\z/
|
||||
inner_type = Regexp.last_match[:inner_type]
|
||||
value.map { |v| _deserialize(inner_type, v) }
|
||||
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
||||
k_type = Regexp.last_match[:k_type]
|
||||
v_type = Regexp.last_match[:v_type]
|
||||
{}.tap do |hash|
|
||||
value.each do |k, v|
|
||||
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
||||
end
|
||||
end
|
||||
else # model
|
||||
# models (e.g. Pet) or oneOf
|
||||
klass = Petstore.const_get(type)
|
||||
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns the string representation of the object
|
||||
# @return [String] String presentation of the object
|
||||
def to_s
|
||||
to_hash.to_s
|
||||
end
|
||||
|
||||
# to_body is an alias to to_hash (backward compatibility)
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_body
|
||||
to_hash
|
||||
end
|
||||
|
||||
# Returns the object in the form of hash
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_hash
|
||||
hash = {}
|
||||
self.class.attribute_map.each_pair do |attr, param|
|
||||
value = self.send(attr)
|
||||
if value.nil?
|
||||
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||
end
|
||||
|
||||
hash[param] = _to_hash(value)
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
# Outputs non-array value in the form of hash
|
||||
# For object, use to_hash. Otherwise, just return the value
|
||||
# @param [Object] value Any valid value
|
||||
# @return [Hash] Returns the value in the form of hash
|
||||
def _to_hash(value)
|
||||
if value.is_a?(Array)
|
||||
value.compact.map { |v| _to_hash(v) }
|
||||
elsif value.is_a?(Hash)
|
||||
{}.tap do |hash|
|
||||
value.each { |k, v| hash[k] = _to_hash(v) }
|
||||
end
|
||||
elsif value.respond_to? :to_hash
|
||||
value.to_hash
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -1,234 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
module Petstore
|
||||
class InlineObject5
|
||||
# Additional data to pass to server
|
||||
attr_accessor :additional_metadata
|
||||
|
||||
# file to upload
|
||||
attr_accessor :required_file
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
def self.attribute_map
|
||||
{
|
||||
:'additional_metadata' => :'additionalMetadata',
|
||||
:'required_file' => :'requiredFile'
|
||||
}
|
||||
end
|
||||
|
||||
# Returns all the JSON keys this model knows about
|
||||
def self.acceptable_attributes
|
||||
attribute_map.values
|
||||
end
|
||||
|
||||
# Attribute type mapping.
|
||||
def self.openapi_types
|
||||
{
|
||||
:'additional_metadata' => :'String',
|
||||
:'required_file' => :'File'
|
||||
}
|
||||
end
|
||||
|
||||
# List of attributes with nullable: true
|
||||
def self.openapi_nullable
|
||||
Set.new([
|
||||
])
|
||||
end
|
||||
|
||||
# Initializes the object
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
def initialize(attributes = {})
|
||||
if (!attributes.is_a?(Hash))
|
||||
fail ArgumentError, "The input argument (attributes) must be a hash in `Petstore::InlineObject5` initialize method"
|
||||
end
|
||||
|
||||
# check to see if the attribute exists and convert string to symbol for hash key
|
||||
attributes = attributes.each_with_object({}) { |(k, v), h|
|
||||
if (!self.class.attribute_map.key?(k.to_sym))
|
||||
fail ArgumentError, "`#{k}` is not a valid attribute in `Petstore::InlineObject5`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
||||
end
|
||||
h[k.to_sym] = v
|
||||
}
|
||||
|
||||
if attributes.key?(:'additional_metadata')
|
||||
self.additional_metadata = attributes[:'additional_metadata']
|
||||
end
|
||||
|
||||
if attributes.key?(:'required_file')
|
||||
self.required_file = attributes[:'required_file']
|
||||
end
|
||||
end
|
||||
|
||||
# Show invalid properties with the reasons. Usually used together with valid?
|
||||
# @return Array for valid properties with the reasons
|
||||
def list_invalid_properties
|
||||
invalid_properties = Array.new
|
||||
if @required_file.nil?
|
||||
invalid_properties.push('invalid value for "required_file", required_file cannot be nil.')
|
||||
end
|
||||
|
||||
invalid_properties
|
||||
end
|
||||
|
||||
# Check to see if the all the properties in the model are valid
|
||||
# @return true if the model is valid
|
||||
def valid?
|
||||
return false if @required_file.nil?
|
||||
true
|
||||
end
|
||||
|
||||
# Checks equality by comparing each attribute.
|
||||
# @param [Object] Object to be compared
|
||||
def ==(o)
|
||||
return true if self.equal?(o)
|
||||
self.class == o.class &&
|
||||
additional_metadata == o.additional_metadata &&
|
||||
required_file == o.required_file
|
||||
end
|
||||
|
||||
# @see the `==` method
|
||||
# @param [Object] Object to be compared
|
||||
def eql?(o)
|
||||
self == o
|
||||
end
|
||||
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Integer] Hash code
|
||||
def hash
|
||||
[additional_metadata, required_file].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def self.build_from_hash(attributes)
|
||||
new.build_from_hash(attributes)
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
# @param [Hash] attributes Model attributes in the form of hash
|
||||
# @return [Object] Returns the model itself
|
||||
def build_from_hash(attributes)
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
||||
self.send("#{key}=", nil)
|
||||
elsif type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
end
|
||||
elsif !attributes[self.class.attribute_map[key]].nil?
|
||||
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
# Deserializes the data based on type
|
||||
# @param string type Data type
|
||||
# @param string value Value to be deserialized
|
||||
# @return [Object] Deserialized data
|
||||
def _deserialize(type, value)
|
||||
case type.to_sym
|
||||
when :Time
|
||||
Time.parse(value)
|
||||
when :Date
|
||||
Date.parse(value)
|
||||
when :String
|
||||
value.to_s
|
||||
when :Integer
|
||||
value.to_i
|
||||
when :Float
|
||||
value.to_f
|
||||
when :Boolean
|
||||
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
when :Object
|
||||
# generic object (usually a Hash), return directly
|
||||
value
|
||||
when /\AArray<(?<inner_type>.+)>\z/
|
||||
inner_type = Regexp.last_match[:inner_type]
|
||||
value.map { |v| _deserialize(inner_type, v) }
|
||||
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
||||
k_type = Regexp.last_match[:k_type]
|
||||
v_type = Regexp.last_match[:v_type]
|
||||
{}.tap do |hash|
|
||||
value.each do |k, v|
|
||||
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
||||
end
|
||||
end
|
||||
else # model
|
||||
# models (e.g. Pet) or oneOf
|
||||
klass = Petstore.const_get(type)
|
||||
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns the string representation of the object
|
||||
# @return [String] String presentation of the object
|
||||
def to_s
|
||||
to_hash.to_s
|
||||
end
|
||||
|
||||
# to_body is an alias to to_hash (backward compatibility)
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_body
|
||||
to_hash
|
||||
end
|
||||
|
||||
# Returns the object in the form of hash
|
||||
# @return [Hash] Returns the object in the form of hash
|
||||
def to_hash
|
||||
hash = {}
|
||||
self.class.attribute_map.each_pair do |attr, param|
|
||||
value = self.send(attr)
|
||||
if value.nil?
|
||||
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||
end
|
||||
|
||||
hash[param] = _to_hash(value)
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
# Outputs non-array value in the form of hash
|
||||
# For object, use to_hash. Otherwise, just return the value
|
||||
# @param [Object] value Any valid value
|
||||
# @return [Hash] Returns the value in the form of hash
|
||||
def _to_hash(value)
|
||||
if value.is_a?(Array)
|
||||
value.compact.map { |v| _to_hash(v) }
|
||||
elsif value.is_a?(Hash)
|
||||
{}.tap do |hash|
|
||||
value.each { |k, v| hash[k] = _to_hash(v) }
|
||||
end
|
||||
elsif value.respond_to? :to_hash
|
||||
value.to_hash
|
||||
else
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject1
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject1' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject1.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject1' do
|
||||
it 'should create an instance of InlineObject1' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject1)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "additional_metadata"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "file"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,55 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject2
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject2' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject2.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject2' do
|
||||
it 'should create an instance of InlineObject2' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject2)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "enum_form_string_array"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', [">", "$"])
|
||||
# validator.allowable_values.each do |value|
|
||||
# expect { @instance.enum_form_string_array = value }.not_to raise_error
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "enum_form_string"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["_abc", "-efg", "(xyz)"])
|
||||
# validator.allowable_values.each do |value|
|
||||
# expect { @instance.enum_form_string = value }.not_to raise_error
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,119 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject3
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject3' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject3.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject3' do
|
||||
it 'should create an instance of InlineObject3' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject3)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "integer"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "int32"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "int64"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "number"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "float"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "double"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "string"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "pattern_without_delimiter"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "byte"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "binary"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "date"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "date_time"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "password"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "callback"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject4
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject4' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject4.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject4' do
|
||||
it 'should create an instance of InlineObject4' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject4)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "param"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "param2"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject5
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject5' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject5.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject5' do
|
||||
it 'should create an instance of InlineObject5' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject5)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "additional_metadata"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "required_file"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject' do
|
||||
it 'should create an instance of InlineObject' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "name"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "status"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -17,19 +17,12 @@ require 'date'
|
||||
# Unit tests for Petstore::InlineResponseDefault
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineResponseDefault' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineResponseDefault.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
describe Petstore::InlineResponseDefault do
|
||||
let(:instance) { Petstore::InlineResponseDefault.new }
|
||||
|
||||
describe 'test an instance of InlineResponseDefault' do
|
||||
it 'should create an instance of InlineResponseDefault' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineResponseDefault)
|
||||
expect(instance).to be_instance_of(Petstore::InlineResponseDefault)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "string"' do
|
||||
|
@ -32,12 +32,6 @@ docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
@ -97,12 +91,6 @@ lib/petstore/models/foo.rb
|
||||
lib/petstore/models/format_test.rb
|
||||
lib/petstore/models/has_only_read_only.rb
|
||||
lib/petstore/models/health_check_result.rb
|
||||
lib/petstore/models/inline_object.rb
|
||||
lib/petstore/models/inline_object1.rb
|
||||
lib/petstore/models/inline_object2.rb
|
||||
lib/petstore/models/inline_object3.rb
|
||||
lib/petstore/models/inline_object4.rb
|
||||
lib/petstore/models/inline_object5.rb
|
||||
lib/petstore/models/inline_response_default.rb
|
||||
lib/petstore/models/list.rb
|
||||
lib/petstore/models/map_test.rb
|
||||
|
@ -141,12 +141,6 @@ Class | Method | HTTP request | Description
|
||||
- [Petstore::FormatTest](docs/FormatTest.md)
|
||||
- [Petstore::HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Petstore::HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Petstore::InlineObject](docs/InlineObject.md)
|
||||
- [Petstore::InlineObject1](docs/InlineObject1.md)
|
||||
- [Petstore::InlineObject2](docs/InlineObject2.md)
|
||||
- [Petstore::InlineObject3](docs/InlineObject3.md)
|
||||
- [Petstore::InlineObject4](docs/InlineObject4.md)
|
||||
- [Petstore::InlineObject5](docs/InlineObject5.md)
|
||||
- [Petstore::InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Petstore::List](docs/List.md)
|
||||
- [Petstore::MapTest](docs/MapTest.md)
|
||||
|
@ -40,12 +40,6 @@ require 'petstore/models/foo'
|
||||
require 'petstore/models/format_test'
|
||||
require 'petstore/models/has_only_read_only'
|
||||
require 'petstore/models/health_check_result'
|
||||
require 'petstore/models/inline_object'
|
||||
require 'petstore/models/inline_object1'
|
||||
require 'petstore/models/inline_object2'
|
||||
require 'petstore/models/inline_object3'
|
||||
require 'petstore/models/inline_object4'
|
||||
require 'petstore/models/inline_object5'
|
||||
require 'petstore/models/inline_response_default'
|
||||
require 'petstore/models/list'
|
||||
require 'petstore/models/map_test'
|
||||
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject1
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject1' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject1.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject1' do
|
||||
it 'should create an instance of InlineObject1' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject1)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "additional_metadata"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "file"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,55 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject2
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject2' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject2.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject2' do
|
||||
it 'should create an instance of InlineObject2' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject2)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "enum_form_string_array"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', [">", "$"])
|
||||
# validator.allowable_values.each do |value|
|
||||
# expect { @instance.enum_form_string_array = value }.not_to raise_error
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "enum_form_string"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["_abc", "-efg", "(xyz)"])
|
||||
# validator.allowable_values.each do |value|
|
||||
# expect { @instance.enum_form_string = value }.not_to raise_error
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,119 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject3
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject3' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject3.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject3' do
|
||||
it 'should create an instance of InlineObject3' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject3)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "integer"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "int32"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "int64"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "number"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "float"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "double"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "string"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "pattern_without_delimiter"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "byte"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "binary"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "date"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "date_time"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "password"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "callback"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject4
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject4' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject4.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject4' do
|
||||
it 'should create an instance of InlineObject4' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject4)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "param"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "param2"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject5
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject5' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject5.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject5' do
|
||||
it 'should create an instance of InlineObject5' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject5)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "additional_metadata"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "required_file"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -1,47 +0,0 @@
|
||||
=begin
|
||||
#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
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
require 'spec_helper'
|
||||
require 'json'
|
||||
require 'date'
|
||||
|
||||
# Unit tests for Petstore::InlineObject
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineObject' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineObject.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of InlineObject' do
|
||||
it 'should create an instance of InlineObject' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineObject)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "name"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
describe 'test attribute "status"' do
|
||||
it 'should work' do
|
||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -17,19 +17,12 @@ require 'date'
|
||||
# Unit tests for Petstore::InlineResponseDefault
|
||||
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
||||
# Please update as you see appropriate
|
||||
describe 'InlineResponseDefault' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::InlineResponseDefault.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
describe Petstore::InlineResponseDefault do
|
||||
let(:instance) { Petstore::InlineResponseDefault.new }
|
||||
|
||||
describe 'test an instance of InlineResponseDefault' do
|
||||
it 'should create an instance of InlineResponseDefault' do
|
||||
expect(@instance).to be_instance_of(Petstore::InlineResponseDefault)
|
||||
expect(instance).to be_instance_of(Petstore::InlineResponseDefault)
|
||||
end
|
||||
end
|
||||
describe 'test attribute "string"' do
|
||||
|
@ -12,8 +12,6 @@ src/main/scala/org/openapitools/client/core/Serializers.scala
|
||||
src/main/scala/org/openapitools/client/core/requests.scala
|
||||
src/main/scala/org/openapitools/client/model/ApiResponse.scala
|
||||
src/main/scala/org/openapitools/client/model/Category.scala
|
||||
src/main/scala/org/openapitools/client/model/InlineObject.scala
|
||||
src/main/scala/org/openapitools/client/model/InlineObject1.scala
|
||||
src/main/scala/org/openapitools/client/model/Order.scala
|
||||
src/main/scala/org/openapitools/client/model/Pet.scala
|
||||
src/main/scala/org/openapitools/client/model/Tag.scala
|
||||
|
@ -91,8 +91,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [ApiResponse](ApiResponse.md)
|
||||
- [Category](Category.md)
|
||||
- [InlineObject](InlineObject.md)
|
||||
- [InlineObject1](InlineObject1.md)
|
||||
- [Order](Order.md)
|
||||
- [Pet](Pet.md)
|
||||
- [Tag](Tag.md)
|
||||
|
@ -8,8 +8,6 @@ src/main/scala/org/openapitools/client/core/DateSerializers.scala
|
||||
src/main/scala/org/openapitools/client/core/JsonSupport.scala
|
||||
src/main/scala/org/openapitools/client/model/ApiResponse.scala
|
||||
src/main/scala/org/openapitools/client/model/Category.scala
|
||||
src/main/scala/org/openapitools/client/model/InlineObject.scala
|
||||
src/main/scala/org/openapitools/client/model/InlineObject1.scala
|
||||
src/main/scala/org/openapitools/client/model/Order.scala
|
||||
src/main/scala/org/openapitools/client/model/Pet.scala
|
||||
src/main/scala/org/openapitools/client/model/Tag.scala
|
||||
|
@ -91,8 +91,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [ApiResponse](ApiResponse.md)
|
||||
- [Category](Category.md)
|
||||
- [InlineObject](InlineObject.md)
|
||||
- [InlineObject1](InlineObject1.md)
|
||||
- [Order](Order.md)
|
||||
- [Pet](Pet.md)
|
||||
- [Tag](Tag.md)
|
||||
|
@ -63,44 +63,6 @@ export interface Category {
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface InlineObject
|
||||
*/
|
||||
export interface InlineObject {
|
||||
/**
|
||||
* Updated name of the pet
|
||||
* @type {string}
|
||||
* @memberof InlineObject
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Updated status of the pet
|
||||
* @type {string}
|
||||
* @memberof InlineObject
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface InlineObject1
|
||||
*/
|
||||
export interface InlineObject1 {
|
||||
/**
|
||||
* Additional data to pass to server
|
||||
* @type {string}
|
||||
* @memberof InlineObject1
|
||||
*/
|
||||
additionalMetadata?: string;
|
||||
/**
|
||||
* file to upload
|
||||
* @type {any}
|
||||
* @memberof InlineObject1
|
||||
*/
|
||||
file?: any;
|
||||
}
|
||||
/**
|
||||
* An order for a pets from the pet store
|
||||
* @export
|
||||
|
@ -28,12 +28,6 @@ models/Foo.ts
|
||||
models/FormatTest.ts
|
||||
models/HasOnlyReadOnly.ts
|
||||
models/HealthCheckResult.ts
|
||||
models/InlineObject.ts
|
||||
models/InlineObject1.ts
|
||||
models/InlineObject2.ts
|
||||
models/InlineObject3.ts
|
||||
models/InlineObject4.ts
|
||||
models/InlineObject5.ts
|
||||
models/InlineResponseDefault.ts
|
||||
models/List.ts
|
||||
models/MapTest.ts
|
||||
|
@ -19,12 +19,6 @@ export * from './Foo';
|
||||
export * from './FormatTest';
|
||||
export * from './HasOnlyReadOnly';
|
||||
export * from './HealthCheckResult';
|
||||
export * from './InlineObject';
|
||||
export * from './InlineObject1';
|
||||
export * from './InlineObject2';
|
||||
export * from './InlineObject3';
|
||||
export * from './InlineObject4';
|
||||
export * from './InlineObject5';
|
||||
export * from './InlineResponseDefault';
|
||||
export * from './List';
|
||||
export * from './MapTest';
|
||||
|
@ -1,8 +1,6 @@
|
||||
README.md
|
||||
models/api_response.proto
|
||||
models/category.proto
|
||||
models/inline_object.proto
|
||||
models/inline_object1.proto
|
||||
models/order.proto
|
||||
models/pet.proto
|
||||
models/tag.proto
|
||||
|
@ -3,8 +3,6 @@ README.md
|
||||
analysis_options.yaml
|
||||
doc/ApiResponse.md
|
||||
doc/Category.md
|
||||
doc/InlineObject.md
|
||||
doc/InlineObject1.md
|
||||
doc/Order.md
|
||||
doc/Pet.md
|
||||
doc/PetApi.md
|
||||
@ -23,8 +21,6 @@ lib/auth/basic_auth.dart
|
||||
lib/auth/oauth.dart
|
||||
lib/model/api_response.dart
|
||||
lib/model/category.dart
|
||||
lib/model/inline_object.dart
|
||||
lib/model/inline_object1.dart
|
||||
lib/model/order.dart
|
||||
lib/model/pet.dart
|
||||
lib/model/tag.dart
|
||||
|
@ -84,8 +84,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [ApiResponse](doc//ApiResponse.md)
|
||||
- [Category](doc//Category.md)
|
||||
- [InlineObject](doc//InlineObject.md)
|
||||
- [InlineObject1](doc//InlineObject1.md)
|
||||
- [Order](doc//Order.md)
|
||||
- [Pet](doc//Pet.md)
|
||||
- [Tag](doc//Tag.md)
|
||||
|
@ -8,8 +8,6 @@ import 'package:built_value/standard_json_plugin.dart';
|
||||
|
||||
import 'package:openapi/model/api_response.dart';
|
||||
import 'package:openapi/model/category.dart';
|
||||
import 'package:openapi/model/inline_object.dart';
|
||||
import 'package:openapi/model/inline_object1.dart';
|
||||
import 'package:openapi/model/order.dart';
|
||||
import 'package:openapi/model/pet.dart';
|
||||
import 'package:openapi/model/tag.dart';
|
||||
@ -21,8 +19,6 @@ part 'serializers.g.dart';
|
||||
@SerializersFor(const [
|
||||
ApiResponse,
|
||||
Category,
|
||||
InlineObject,
|
||||
InlineObject1,
|
||||
Order,
|
||||
Pet,
|
||||
Tag,
|
||||
@ -39,12 +35,6 @@ const FullType(BuiltList, const [const FullType(ApiResponse)]),
|
||||
const FullType(BuiltList, const [const FullType(Category)]),
|
||||
() => new ListBuilder<Category>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject)]),
|
||||
() => new ListBuilder<InlineObject>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject1)]),
|
||||
() => new ListBuilder<InlineObject1>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(Order)]),
|
||||
() => new ListBuilder<Order>())
|
||||
..addBuilderFactory(
|
||||
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object1.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject1
|
||||
void main() {
|
||||
final instance = InlineObject1();
|
||||
|
||||
group(InlineObject1, () {
|
||||
// Additional data to pass to server
|
||||
// String additionalMetadata (default value: null)
|
||||
test('to test the property `additionalMetadata`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// file to upload
|
||||
// Uint8List file (default value: null)
|
||||
test('to test the property `file`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject
|
||||
void main() {
|
||||
final instance = InlineObject();
|
||||
|
||||
group(InlineObject, () {
|
||||
// Updated name of the pet
|
||||
// String name (default value: null)
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Updated status of the pet
|
||||
// String status (default value: null)
|
||||
test('to test the property `status`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -25,12 +25,6 @@ doc/Foo.md
|
||||
doc/FormatTest.md
|
||||
doc/HasOnlyReadOnly.md
|
||||
doc/HealthCheckResult.md
|
||||
doc/InlineObject.md
|
||||
doc/InlineObject1.md
|
||||
doc/InlineObject2.md
|
||||
doc/InlineObject3.md
|
||||
doc/InlineObject4.md
|
||||
doc/InlineObject5.md
|
||||
doc/InlineResponseDefault.md
|
||||
doc/MapTest.md
|
||||
doc/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
@ -90,12 +84,6 @@ lib/model/foo.dart
|
||||
lib/model/format_test.dart
|
||||
lib/model/has_only_read_only.dart
|
||||
lib/model/health_check_result.dart
|
||||
lib/model/inline_object.dart
|
||||
lib/model/inline_object1.dart
|
||||
lib/model/inline_object2.dart
|
||||
lib/model/inline_object3.dart
|
||||
lib/model/inline_object4.dart
|
||||
lib/model/inline_object5.dart
|
||||
lib/model/inline_response_default.dart
|
||||
lib/model/map_test.dart
|
||||
lib/model/mixed_properties_and_additional_properties_class.dart
|
||||
|
@ -121,12 +121,6 @@ Class | Method | HTTP request | Description
|
||||
- [FormatTest](doc//FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc//HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc//HealthCheckResult.md)
|
||||
- [InlineObject](doc//InlineObject.md)
|
||||
- [InlineObject1](doc//InlineObject1.md)
|
||||
- [InlineObject2](doc//InlineObject2.md)
|
||||
- [InlineObject3](doc//InlineObject3.md)
|
||||
- [InlineObject4](doc//InlineObject4.md)
|
||||
- [InlineObject5](doc//InlineObject5.md)
|
||||
- [InlineResponseDefault](doc//InlineResponseDefault.md)
|
||||
- [MapTest](doc//MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc//MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
|
@ -26,12 +26,6 @@ import 'package:openapi/model/foo.dart';
|
||||
import 'package:openapi/model/format_test.dart';
|
||||
import 'package:openapi/model/has_only_read_only.dart';
|
||||
import 'package:openapi/model/health_check_result.dart';
|
||||
import 'package:openapi/model/inline_object.dart';
|
||||
import 'package:openapi/model/inline_object1.dart';
|
||||
import 'package:openapi/model/inline_object2.dart';
|
||||
import 'package:openapi/model/inline_object3.dart';
|
||||
import 'package:openapi/model/inline_object4.dart';
|
||||
import 'package:openapi/model/inline_object5.dart';
|
||||
import 'package:openapi/model/inline_response_default.dart';
|
||||
import 'package:openapi/model/map_test.dart';
|
||||
import 'package:openapi/model/mixed_properties_and_additional_properties_class.dart';
|
||||
@ -80,12 +74,6 @@ Foo,
|
||||
FormatTest,
|
||||
HasOnlyReadOnly,
|
||||
HealthCheckResult,
|
||||
InlineObject,
|
||||
InlineObject1,
|
||||
InlineObject2,
|
||||
InlineObject3,
|
||||
InlineObject4,
|
||||
InlineObject5,
|
||||
InlineResponseDefault,
|
||||
MapTest,
|
||||
MixedPropertiesAndAdditionalPropertiesClass,
|
||||
@ -175,24 +163,6 @@ const FullType(BuiltList, const [const FullType(HasOnlyReadOnly)]),
|
||||
const FullType(BuiltList, const [const FullType(HealthCheckResult)]),
|
||||
() => new ListBuilder<HealthCheckResult>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject)]),
|
||||
() => new ListBuilder<InlineObject>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject1)]),
|
||||
() => new ListBuilder<InlineObject1>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject2)]),
|
||||
() => new ListBuilder<InlineObject2>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject3)]),
|
||||
() => new ListBuilder<InlineObject3>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject4)]),
|
||||
() => new ListBuilder<InlineObject4>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineObject5)]),
|
||||
() => new ListBuilder<InlineObject5>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(InlineResponseDefault)]),
|
||||
() => new ListBuilder<InlineResponseDefault>())
|
||||
..addBuilderFactory(
|
||||
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object1.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject1
|
||||
void main() {
|
||||
final instance = InlineObject1();
|
||||
|
||||
group(InlineObject1, () {
|
||||
// Additional data to pass to server
|
||||
// String additionalMetadata (default value: null)
|
||||
test('to test the property `additionalMetadata`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// file to upload
|
||||
// Uint8List file (default value: null)
|
||||
test('to test the property `file`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object2.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject2
|
||||
void main() {
|
||||
final instance = InlineObject2();
|
||||
|
||||
group(InlineObject2, () {
|
||||
// Form parameter enum test (string array)
|
||||
// BuiltList<String> enumFormStringArray (default value: const [])
|
||||
test('to test the property `enumFormStringArray`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Form parameter enum test (string)
|
||||
// String enumFormString (default value: '-efg')
|
||||
test('to test the property `enumFormString`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -1,96 +0,0 @@
|
||||
import 'package:openapi/model/inline_object3.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject3
|
||||
void main() {
|
||||
final instance = InlineObject3();
|
||||
|
||||
group(InlineObject3, () {
|
||||
// None
|
||||
// int integer (default value: null)
|
||||
test('to test the property `integer`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// int int32 (default value: null)
|
||||
test('to test the property `int32`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// int int64 (default value: null)
|
||||
test('to test the property `int64`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// num number (default value: null)
|
||||
test('to test the property `number`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// double float (default value: null)
|
||||
test('to test the property `float`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// double double_ (default value: null)
|
||||
test('to test the property `double_`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// String string (default value: null)
|
||||
test('to test the property `string`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// String patternWithoutDelimiter (default value: null)
|
||||
test('to test the property `patternWithoutDelimiter`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// String byte (default value: null)
|
||||
test('to test the property `byte`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// Uint8List binary (default value: null)
|
||||
test('to test the property `binary`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// DateTime date (default value: null)
|
||||
test('to test the property `date`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// DateTime dateTime (default value: null)
|
||||
test('to test the property `dateTime`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// String password (default value: null)
|
||||
test('to test the property `password`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// None
|
||||
// String callback (default value: null)
|
||||
test('to test the property `callback`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object4.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject4
|
||||
void main() {
|
||||
final instance = InlineObject4();
|
||||
|
||||
group(InlineObject4, () {
|
||||
// field1
|
||||
// String param (default value: null)
|
||||
test('to test the property `param`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// field2
|
||||
// String param2 (default value: null)
|
||||
test('to test the property `param2`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object5.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject5
|
||||
void main() {
|
||||
final instance = InlineObject5();
|
||||
|
||||
group(InlineObject5, () {
|
||||
// Additional data to pass to server
|
||||
// String additionalMetadata (default value: null)
|
||||
test('to test the property `additionalMetadata`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// file to upload
|
||||
// Uint8List requiredFile (default value: null)
|
||||
test('to test the property `requiredFile`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/model/inline_object.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject
|
||||
void main() {
|
||||
final instance = InlineObject();
|
||||
|
||||
group(InlineObject, () {
|
||||
// Updated name of the pet
|
||||
// String name (default value: null)
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Updated status of the pet
|
||||
// String status (default value: null)
|
||||
test('to test the property `status`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -3,8 +3,6 @@
|
||||
README.md
|
||||
doc/ApiResponse.md
|
||||
doc/Category.md
|
||||
doc/InlineObject.md
|
||||
doc/InlineObject1.md
|
||||
doc/Order.md
|
||||
doc/Pet.md
|
||||
doc/PetApi.md
|
||||
@ -27,8 +25,6 @@ lib/auth/http_bearer_auth.dart
|
||||
lib/auth/oauth.dart
|
||||
lib/model/api_response.dart
|
||||
lib/model/category.dart
|
||||
lib/model/inline_object.dart
|
||||
lib/model/inline_object1.dart
|
||||
lib/model/order.dart
|
||||
lib/model/pet.dart
|
||||
lib/model/tag.dart
|
||||
|
@ -86,8 +86,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [ApiResponse](doc//ApiResponse.md)
|
||||
- [Category](doc//Category.md)
|
||||
- [InlineObject](doc//InlineObject.md)
|
||||
- [InlineObject1](doc//InlineObject1.md)
|
||||
- [Order](doc//Order.md)
|
||||
- [Pet](doc//Pet.md)
|
||||
- [Tag](doc//Tag.md)
|
||||
|
@ -32,8 +32,6 @@ part 'api/user_api.dart';
|
||||
|
||||
part 'model/api_response.dart';
|
||||
part 'model/category.dart';
|
||||
part 'model/inline_object.dart';
|
||||
part 'model/inline_object1.dart';
|
||||
part 'model/order.dart';
|
||||
part 'model/pet.dart';
|
||||
part 'model/tag.dart';
|
||||
|
@ -165,10 +165,6 @@ class ApiClient {
|
||||
return ApiResponse.fromJson(value);
|
||||
case 'Category':
|
||||
return Category.fromJson(value);
|
||||
case 'InlineObject':
|
||||
return InlineObject.fromJson(value);
|
||||
case 'InlineObject1':
|
||||
return InlineObject1.fromJson(value);
|
||||
case 'Order':
|
||||
return Order.fromJson(value);
|
||||
case 'Pet':
|
||||
|
@ -1,24 +0,0 @@
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for InlineObject1
|
||||
void main() {
|
||||
final instance = InlineObject1();
|
||||
|
||||
group('test InlineObject1', () {
|
||||
// Additional data to pass to server
|
||||
// String additionalMetadata
|
||||
test('to test the property `additionalMetadata`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// file to upload
|
||||
// MultipartFile file
|
||||
test('to test the property `file`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user