Skip to content

Mapping key must be a string scalar rather than number in Responses map #23

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

Merged
merged 1 commit into from
Aug 18, 2022
Merged

Mapping key must be a string scalar rather than number in Responses map #23

merged 1 commit into from
Aug 18, 2022

Conversation

padiazg
Copy link
Contributor

@padiazg padiazg commented Aug 12, 2022

Description

This PR is to fix the "mapping key must be a string scalar rather than number" issue.

Motivation and Context

Using Stoplight Studio to validate the generated document, I found some issues.

How This Has Been Tested

Opening the resulting file with Stoplight Studio

Screenshots

Before:
Note that at lines 42, 58 and 61 the status code are numeric, and it is expected those to be a string
Captura de Pantalla 2022-08-11 a la(s) 21 25 25

After:
The status codes are now strings as expected
Captura de Pantalla 2022-08-11 a la(s) 21 37 47

Copy link
Contributor

@kaynetik kaynetik left a comment

Choose a reason for hiding this comment

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

👍🏼

@kaynetik kaynetik merged commit 003349e into go-oas:main Aug 18, 2022
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.

2 participants