Skip to content
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

openapi/json-schema @extension alignment - remove x- constraint and support values #6076

Open
3 tasks done
chrisradek opened this issue Feb 20, 2025 · 0 comments · May be fixed by #6078
Open
3 tasks done

openapi/json-schema @extension alignment - remove x- constraint and support values #6076

chrisradek opened this issue Feb 20, 2025 · 0 comments · May be fixed by #6078
Labels
1_0_E2E emitter:openapi3 Issues for @typespec/openapi3 emitter

Comments

@chrisradek
Copy link
Member

Clear and concise description of the problem

The @typespec/openapi @extension decorator should be updated to behave similarly to the @typespec/json-schema @extension decorator.

This task tracks the (mostly) non-breaking changes to the extension:

  1. Removal of the starts with x- extension name constraint
  2. Add support for passing in value kinds to generate raw data

Additionally, a warning should be added for passing in types to the @extension as this behavior will change in a subsequent release to emit Open API schemas instead of raw data.

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1_0_E2E emitter:openapi3 Issues for @typespec/openapi3 emitter
Projects
None yet
1 participant