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

feat: support for dictionaries #218

Merged
merged 5 commits into from
Jun 22, 2022
Merged

feat: support for dictionaries #218

merged 5 commits into from
Jun 22, 2022

Conversation

joelabrahamsson
Copy link
Contributor

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • [x ] Feature
  • Test
  • Docs
  • Refactor
  • Build-related changes
  • Other, please describe:

Description:

This PR adds support for dictionaries with objects as values as described in the OpenAPI spec under "Value type" (second example here: https://swagger.io/docs/specification/data-models/dictionaries/
As my understanding of the codebase is limited I don't think the implementation is optimal but hopefully someone with more familiarity of the codebase can refactor it to a satisfactory level?

@kevinccbsg kevinccbsg requested a review from bri06 May 17, 2022 10:38
@kevinccbsg kevinccbsg added the enhancement New feature or request label May 17, 2022
Copy link
Contributor

@LonelyPrincess LonelyPrincess left a comment

Choose a reason for hiding this comment

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

Hey, this is a very interesting feature! 👏🏻

I've requested a few changes to make the syntax clearer and fix the tests (which are failing at the moment), but once this is addressed, I think this would be a nice addition to the project. 👍🏻

test/transforms/components/index.test.js Outdated Show resolved Hide resolved
transforms/components/index.js Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jun 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@kevinccbsg
Copy link
Member

@LonelyPrincess thanks a lot for all your help reviewing the code! and thanks @joelabrahamsson for the contribution

@all-contributors please add @joelabrahamsson for code

@allcontributors
Copy link
Contributor

@kevinccbsg

I've put up a pull request to add @joelabrahamsson! 🎉

@kevinccbsg kevinccbsg merged commit 0bda160 into BRIKEV:master Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants