You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: generation fails when schemas have an $id field or array of objects (#287)
* fix: is now being handled by changing the value to the classname where appropriate as part of the preprocess hook; items arrays are also working with the changes; updated tests
* chore: renamed new custom attribute to be more generic; fixed linting issues; const javaPackage instead of let
// If we come across this schema later in the code generator, we'll know to rename it to its parent because the proper settings will be set in the model class.
debugApplicationModel(`setupModelClassMap anonymous schemas ${schemaName} type ${schema.type()}`);
104
-
this.registerSchemasInProperties(schema);
105
-
this.registerSchemasInAllOf(schema);
106
-
});
107
-
debugApplicationModel('modelClassMap:');
108
-
debugApplicationModel(this.modelClassMap);
109
-
}
110
-
}
111
-
112
-
registerSchemasInProperties(schema){
113
-
if(!!Object.keys(schema.properties()).length){
114
-
// Each property name is the name of a schema. It should also have an x-parser-schema-id name. We'll be adding duplicate mappings (two mappings to the same model class) since the anon schemas do have names
0 commit comments