tazatechnology / openapi_spec

Dart based OpenAPI specification generator and parser
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Dollar Signs in Names aren't escaped #58

Open dickermoshe opened 6 months ago

dickermoshe commented 6 months ago

This gonna require a whole bunch of code to fix, all writes need to go through some regex. Or make all strings raw -> r'$Hi'

Details

``` components: schemas: UnsafeCharacters: description: Model using unsafe characters properties: $prefix: type: string _before: type: string _both_: type: string after_: type: string in_the_middle: type: string r@nd0m_$t#ff: type: string suffix$: type: string securitySchemes: BearerAuth: bearerFormat: JWT scheme: bearer type: http info: license: name: MIT title: Elm generator test version: 1.0.0 openapi: 3.0.0 servers: - url: http://localhost:9000 ```