Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Unable to specify custom IPropertyNameResolver in SchemaGenerationSettings #236

Open
@mskowron-orthofi

Description

@mskowron-orthofi

I have a use case where my Json property names need to be formatted as lower-case, and I would prefer to not use the Newtonsoft JsonProperty attribute on every property to accomplish this. I figured using a custom IPropertyNameResolver would do the trick, but found that CamelCasePropertyNameResolver is the only non-default IPropertyNameResolver that works, due to this section of code: https://github.com/microsoft/OpenAPI.NET.CSharpAnnotations/blob/master/src/Microsoft.OpenApi.CSharpAnnotations.DocumentGeneration/AssemblyLoader/AssemblyLoader.cs#L180

Open Api generation should allow for any class that implements IPropertyNameResolver to be accepted and used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions