mikekonan / go-oas3

Open API v3 server code generator
MIT License
20 stars 8 forks source link

Error when setting x-go-regex in component schema #25

Closed valichek closed 3 years ago

valichek commented 3 years ago

Generation of swagger example with:

CreateTransactionRequest:
      properties:
        Currency:
          $ref: '#/components/schemas/CurrencyCode'
        Country:
          $ref: '#/components/schemas/CountryAlpha2'
        Email:
          $ref: '#/components/schemas/Email'
        CallbackURL:
          $ref: '#/components/schemas/URL'
        TransactionID:
          type: string
          format: uuid
        RegexParam:
          type: string
          x-go-regex: ^[.?\d]+$ # added this line

results to error: Error 73:3: expected ';', found body while formatting source:

mikekonan commented 3 years ago

thanks for your help