-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
should render additionalProperties #68
Comments
@jonaslagoni You pinged me about problems with For
For {
"type": "object",
"patternProperties": {
"^S_": { "type": "string" },
"^I_": { "type": "integer" }
},
"additionalProperties": false
}
patternProperties: Record<string, any>;
getPatternProperty(key: string): {type | undefined} {
return patternProperties[key];
}
setPatternProperty(key: string, value: any): void {
// here we must check patterns
if (/^S_/.test(key) && typeof value === "string") {
this.patternProperties[key] = value;
}
if (/^I_/.test(key) && typeof value === "number") {
this.patternProperties[key] = value;
}
// maybe throw error
}
|
This issue has been automatically marked as stale because it has not had recent activity 😴 |
🎉 This issue has been resolved in version 0.11.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
Currently the
CommonModel
does include additionalProperties, however they are not rendered as properties in the generatorQuestions:
additionalProperties
if we already have a property calledadditionalProperties
?The text was updated successfully, but these errors were encountered: