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

Exp/arbitrary object #180

Closed cjea closed 3 years ago

cjea commented 3 years ago

Add primitive type for an arbitrary object. This is a good utility type for APIs that offer arbitrary data/metadata to be passed to an endpoint. For example, the operationScopes in APS.

OpenAPI implements this as a type: object and additionalProperties: true.

It's a primitive data type so that I didn't have to implement a stringmap<any> type in pegJS + typescript. It's not a great reason, but the solution works and is much less involved. This data type will never have anything added to it (by definition) and works fine as a primitive.

ops-github-DU4JOAWE commented 3 years ago

This change is Reviewable