Skip to content

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Jun 16, 2025

Proposed changes

This PR is a follow up of #773 where I forgot to add a custom serielization to support the extension field.

Test

I generated the versioned spec using the mms spec in mms/master and checked that the extensions field was present.

./bin/foascli split -s ~/workspace/mms/server/openapi/services/openapi-mms.json --env dev -o ~/Downloads/openapi.json

Screenshot 2025-06-16 at 18 52 39

@andreaangiolillo andreaangiolillo changed the title CLOUDP-325047: add missing assignment CLOUDP-325047: add support for Extentensios to the Spec Struct Jun 16, 2025
@andreaangiolillo andreaangiolillo marked this pull request as ready for review June 16, 2025 16:53
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner June 16, 2025 16:53
@andreaangiolillo andreaangiolillo requested a review from gssbzn June 16, 2025 16:53
Comment on lines +132 to +134
for k, v := range doc.Extensions {
m[k] = v
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the reason why we need this custom marshal

@andreaangiolillo andreaangiolillo merged commit 114fd46 into main Jun 16, 2025
10 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-325047_2 branch June 16, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants