-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for media types components in OAS 3.2.0 #39
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
Add support for media types components in OAS 3.2.0 #39
Conversation
Co-authored-by: baywet <[email protected]>
Co-authored-by: baywet <[email protected]>
…24-9aa8-a50a721fd288
Signed-off-by: Vincent Biret <[email protected]>
Co-authored-by: baywet <[email protected]>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Signed-off-by: Vincent Biret <[email protected]>
…nceable Signed-off-by: Vincent Biret <[email protected]>
@copilot add a new OpenApiMediaTypeReferenceTests file in
Also add a new OpenApiMediaTypeReferenceDeserializerTests file in
|
Co-authored-by: baywet <[email protected]>
Added test files as requested in commit fda6621: OpenApiMediaTypeReferenceTests - 4 passing tests validating media type component references in:
OpenApiMediaTypeReferenceDeserializerTests - Test file created with 4 test scenarios (currently commented out). These tests document the expected deserialization behavior but require parser implementation for media type components and references to be functional. The tests can be uncommented once the V32 deserializer adds support for:
|
@copilot uncomment those new unit tests and implement the deserialization behaviour for version 3.2 |
Implemented deserialization support for OAS 3.2 media type components in commit 848cf88: Changes made:
Current status: |
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
848cf88
to
c4238b6
Compare
…24-9aa8-a50a721fd288
…ersion 3.2 Signed-off-by: Vincent Biret <[email protected]>
Note for me for later: the serialization should inline the media type references in 2/3/3.1 |
…24-9aa8-a50a721fd288 Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
…to 3 and 3.1 Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Implements support for media types components as defined in OAS 3.2.0, including full reference support, workspace registration, serialization, deserialization, and comprehensive test coverage.
Implementation
mediaTypes
field in OAS 3.2.0, and withx-oai-
prefix as extensions in earlier versions (3.1.0 and 3.0.0)$ref
in content dictionariesapplication/json
→application~1json
)Testing
Added comprehensive test coverage:
Code Quality
/// <inheritdoc />
for interface members following project conventionsStringComparer.Ordinal
for all dictionary instantiationsFixes #18
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.