Skip to content

[elm-client] Spaces in definition names will break #311

Open
@andys8

Description

@andys8

Issue

If there are definitions, which contain spaces, the generated code will break, because the names are used for types and filenames and include spaces.

But: I think spaces are not RFC3986-compliant. I'm opening this issue here, because it could be solved and make the generated code more robust by parsing those names and handling some characters.
The actual issue is probably other libraries using spaces. I've opened an issue for feathers-swagger where this is the case: feathersjs-ecosystem/feathers-swagger#109

Code: https://github.com/feathersjs-ecosystem/feathers-swagger/blob/e61b2852f728485e3a7ec82abd16de51b8bf5538/lib/index.js#L143

Fix

Parse and remove or replaces spaces (and other characters)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions