Skip to content

Swagger method names nicePascalName is not a nice name. #45

@ghost

Description

Unsure if bug or feature, but the generated method names (

let methodNameCandidate = nicePascalName <| getMethodNameCandidate op
) are fed through nicePascalName. This causes a separation between what is in the JSON schema and the function name that is generated.

E.g. "operationId":"Application_GetLatestApplicationDetails" in the JSON schema gets turned into nicePascalName "Application_GetLatestApplicationDetails" which subsequently returns ApplicationGetLatestApplicationDetails which is less ideal.

nicePascalName "Application_GetLatestApplicationDetails" = nicePascalName "ApplicationGet_LatestApplicationDetails" returns true, even though they are separate controllers and separate functions.

I would expect that the operationId in the JSON directly maps to a function in the generated results of the TP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions