Class: module:"openapi-transformers/add-x-ms-enum-name.js"

module:"openapi-transformers/add-x-ms-enum-name.js"()

Transformer to add x-ms-enum.name from schema name, if not present (so Autorest will generate enum types). https://github.com/Azure/autorest/tree/master/docs/extensions#x-ms-enum

Constructor

new module:"openapi-transformers/add-x-ms-enum-name.js"()

Source:

Methods

transformSchemas(schemas) → {!Object.<string, object>|*}

Transforms Map[string,Schema] with named schemas by passing the name as the second argument to transformSchema.
Parameters:
Name Type Description
schemas !Object.<string, object> | * Schmea map to transform.
Source:
Returns:
If obj is a Map, a plain object with the same own enumerable string-keyed properties as obj with values returned by transformSchema. Otherwise, obj is returned unchanged.
Type
!Object.<string, object> | *