LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

URI primitive type not supported #103

Closed hatim-ez closed 4 years ago

hatim-ez commented 4 years ago

Swagger supports different format modifiers for a string type, uri being one of them:

inputDataURL:
          type: string
          description: "URL of the data to be distributed. Currently, we only support files
            in GCS.  "
          format: uri
          example: https://storage.google.com/buckets/my-bucket/dog-lovers-campaign.csv

However, reslang only supports the url string format (https://github.com/LiveRamp/reslang/blob/master/src/genbase.ts#L920-L927).

It would be nice to have reslang either support customizable string formats, or just add support for the uri one.

liveandrew commented 4 years ago

version 2.2.2 contains the uri type