-
Notifications
You must be signed in to change notification settings - Fork 215
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
Support deprecated
on fields in the OpenAPI conversion
#2221
Support deprecated
on fields in the OpenAPI conversion
#2221
Conversation
Might need a bit of guidance on this one. At 66b3462 I'm setting the deprecated field for json schema for what I think are member fields. This seems to break cloudformation tests in CfnSchemasTest, how can this be separated? |
CloudFormation uses Draft 7, so those tests should pass when this field is not being added for that JSON Schema version. |
@kstich thanks, I made some changes, including only setting it when the json schema version != DRAFT07, which I assume will work meaning set it if version is "greater" than DRAFT07. |
Background
It seems that the OpenAPI transformation doesn't set
deprecated: true
for members that are annotated as@deprecated(...)
.Started by just adding a failing test to check that it makes sense. If this is something that is not expected I will proceed to try a fix.