Skip to content

Fix AdditionalPropertiesType Propagation#1017

Merged
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
FragmentedPacket:bugfix-1016-additional-properties-types
May 6, 2023
Merged

Fix AdditionalPropertiesType Propagation#1017
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
FragmentedPacket:bugfix-1016-additional-properties-types

Conversation

@FragmentedPacket
Copy link
Copy Markdown
Contributor

Fixes #1016

Updated code to find AdditionalTypes under AdditionalPropertiesType as well. AdditionalPropertiesType is just another Schema object that wasn't being searched before.

I hope this is the proper fix for this as I'm new to Go and this project, but this spot seems to make sense as it's keeping the same structure this library is currently storing additional types, but adds the additional spot when finding AdditionalTypes that isn't currently being searched.

@deepmap-marcinr deepmap-marcinr merged commit 71bd050 into oapi-codegen:master May 6, 2023
deepmap-marcinr pushed a commit that referenced this pull request May 6, 2023
…esType key as well. (#1017)"

This reverts commit 71bd050.

Unit tests fail with this change, because some fields in additional properties become duplicated
@deepmap-marcinr
Copy link
Copy Markdown
Contributor

I had to revert this, because it broke existing tests of additional properties by duplicating types.

@FragmentedPacket
Copy link
Copy Markdown
Contributor Author

I will look further into this. Were these new tests that were added recently?

@FragmentedPacket
Copy link
Copy Markdown
Contributor Author

I will look further into this. Were these new tests that were added recently?

I just wanted to follow up as I'm not seeing any failing tests and not sure the exact thing that happened, but would like to get this figured out.

adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
…esType key as well. (oapi-codegen#1017)"

This reverts commit 0cdf909.

Unit tests fail with this change, because some fields in additional properties become duplicated
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
…esType key as well. (oapi-codegen#1017)"

This reverts commit 71bd050.

Unit tests fail with this change, because some fields in additional properties become duplicated
danicc097 pushed a commit to danicc097/oapi-codegen that referenced this pull request Aug 31, 2024
danicc097 pushed a commit to danicc097/oapi-codegen that referenced this pull request Aug 31, 2024
…esType key as well. (oapi-codegen#1017)"

This reverts commit 71bd050.

Unit tests fail with this change, because some fields in additional properties become duplicated
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.

Schema Property with only additionalProperties schema defined

2 participants