Skip to content

How to deal with special characters? #32

@TimoGlastra

Description

@TimoGlastra

The new vc+sd-jwt types in the PEX Models repository seems to be causing some trouble, as OpenAPI Generator strips/replaces special characters thus making the resulting interfaces not aligned with the prpoerties from the specification.

This is the case for vc+sd-jwt -> vcsd_jwt, as well as sd-jwt_alg_values -> sd_jwt_alg_values, and kb-jwt_alg_values -> kb_jwt_alg_values.

I've ran into this problem already years ago (OpenAPITools/openapi-generator#4748), and it seems there's a lot of issues with this (e.g. OpenAPITools/openapi-generator#6810, OpenAPITools/openapi-generator#15261)

What would be the best way forward here? Should we do manual post-processing on the generated interfaces?

I did some tinkering with e.g. https://github.com/drwpow/openapi-typescript which seems to generate the properties correct, but doesn't output separate interfaces etc..

  • I'm submitting a ...
    [x] bug report

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