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

Unexpected initial token 'Boolean' when populating object #138

Closed
danpowell88 opened this issue Sep 5, 2023 · 6 comments
Closed

Unexpected initial token 'Boolean' when populating object #138

danpowell88 opened this issue Sep 5, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@danpowell88
Copy link

Describe the bug
refitter https://api.getport.io/json -o IPortApi.cs
Refitter v0.7.3.37
Support key: 6mxy0om

Error:
Unexpected initial token 'Boolean' when populating object. Expected JSON object or array. Path
'paths./v1/blueprints/{blueprint_identifier}/permissions.patch.requestBody.content.application/json.schema.properties.ad
ditionalProperties', line 1, position 3314.
Error: Could not find color or style 'T'.

Support Key: 6mxy0om

OpenAPI Specifications
https://api.getport.io/json

@danpowell88 danpowell88 added the bug Something isn't working label Sep 5, 2023
@christianhelle
Copy link
Owner

@danpowell88 Thanks for reporting this

I tried out the JSON file (and the YAML version as well) and loaded into OpenAPI spec validators and they both (JSON and YAML versions) reported 102 errors and 279 warnings.

Unfortunately, there is nothing I can do to get that spec to work but I can look into better error reporting that actually attempts to write out error details of a bad OpenAPI spec

@christianhelle
Copy link
Owner

@all-contributors please add @danpowell88 for bugs

@allcontributors
Copy link
Contributor

@christianhelle

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

@christianhelle
Copy link
Owner

christianhelle commented Sep 5, 2023

@danpowell88 In case you're curious about the errors, I used Hidi to validate errors

Hidi errors

@christianhelle
Copy link
Owner

I implemented OpenAPI validation today and will include it in the next release. Basically, it prints out errors and warnings in an OpenAPI document so users can reach out to the author of the document to request changes implemented

@christianhelle
Copy link
Owner

There's not much we can do about the specified OpenAPI doc in this issue, so I'm closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants