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

operationNameGenerator enum not resolved from .refitter file #277

Closed
Xeevis opened this issue Jan 9, 2024 · 2 comments · Fixed by #278
Closed

operationNameGenerator enum not resolved from .refitter file #277

Xeevis opened this issue Jan 9, 2024 · 2 comments · Fixed by #278
Assignees
Labels
bug Something isn't working

Comments

@Xeevis
Copy link

Xeevis commented Jan 9, 2024

Describe the bug
When using the CLI refitter --settings-file as specified by documentation

{
    "openApiPath": "swagger.yaml",
    "operationNameGenerator": "Default"
}

it throws

Error: The JSON value could not be converted to Refitter.Core.OperationNameGeneratorTypes. Path: $.operationNameGenerator | LineNumber: 2 | BytePositionInLine: 39.

Integer works fine

"operationNameGenerator": 0

Additional context
Version 0.9.0

@christianhelle
Copy link
Owner

@Xeevis Ooops! I missed that detail... one-liner fix on deserializing enums as strings on the way in PR #278

Sorry for the inconvenience and thanks for taking the time to report this

@christianhelle
Copy link
Owner

@Xeevis fix is released as v0.9.2

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

Successfully merging a pull request may close this issue.

2 participants