You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.npmjs.com/package/@kevinoid/openapi-transformers)
9
9
10
-
A Node.js/npm project template with [codecov](https://codecov.io/),
|[AddTagToOperationIdsTransformer](add-tag-to-operation-ids.js)| Prefix `operationId` with the first tag name and an underscore. |
48
+
|[AddXMsEnumNameTransformer](add-x-ms-enum-name.js)| Add `x-ms-enum.name` from schema name, if not present. |
49
+
|[AddXMsEnumValueNamesTransformer](add-x-ms-enum-value-names.js)| Add `x-ms-enum.values.name` to enums where the name generated by Autorest differs from the Microsoft C# Capitalization Rules for Identifiers. |
50
+
|[AdditionalPropertiesToObjectTransformer](additional-properties-to-object.js)| Replace boolean `additionalProperties` with a Schema. |
51
+
|[AdditionalPropertiesToUnconstrainedTransformer](additional-properties-to-unconstrained.js)| Replace `additionalProperties` (and `patternProperties`) with an unconstrained schema alongside other properties. |
52
+
|[BinaryStringToFileTransformer](binary-string-to-file.js)| Replace `type: string` with `format: binary` (or `format: file`) with `type: file`. |
53
+
|[BoolEnumToBoolTransformer](bool-enum-to-bool.js)| Replace `enum: [true, false]` with `type: boolean`. |
54
+
|[ClearHtmlResponseSchemaTransformer](clear-html-response-schema.js)| Remove response content for the `text/html` media type. |
55
+
|[ClientParamsToGlobalTransformer](client-params-to-global.js)| Move parameters with `x-ms-parameter-location: client` defined on Path Item Objects and Operation Objects to the Components or Definitions Object. |
56
+
|[ConstToEnumTransformer](const-to-enum.js)| Convert Schema Objects with `const` to `enum`. |
|[ExclusiveMinMaxToBoolTransformer](exclusive-min-max-to-bool.js)| Convert Schema Objects with numeric values for `exclusiveMaximum` and/or `exclusiveMinimum` to boolean values with corresponding `maximum` and/or `minimum`. |
59
+
|[FormatToTypeTransformer](format-to-type.js)| Convert known formats in an OAS3 doc to types. |
60
+
|[InlineNonObjectSchemaTransformer](inline-non-object-schemas.js)| Inline schemas with non-object type. |
61
+
|[MergeSubschemasTransformer](merge-subschemas.js)| Merge `allOf`/`anyOf`/`oneOf` schemas into the parent schema. |
62
+
|[NullableNotRequiredTransformer](nullable-not-required.js)| Make properties which are `nullable` non-`required`. |
63
+
|[NullableToTypeNullTransformer](nullable-to-type-null.js)| Add `'null'` to `type` of Schema Objects with `nullable: true` or `x-nullable: true`. |
64
+
|[OpenApi31To30Transformer](openapi31to30.js)| Convert an OpenAPI 3.1.* document to OpenAPI 3.0.3. |
65
+
|[PathParametersToOperationTransformer](path-parameters-to-operations.js)| Move parameters defined on Path Item Objects to the beginning of the parameters array of the Operation Objects. |
66
+
|[PatternPropertiesToAdditionalPropertiesTransformer](pattern-properties-to-additional-properties.js)| Combine any `patternProperties` into `additionalProperties`. |
67
+
|[QueriesToXMsPathsTransformer](queries-to-x-ms-paths.js)| Move paths with query parameters from `paths` to `x-ms-paths`. |
68
+
|[ReadOnlyNotRequiredTransformer](read-only-not-required.js)| Ensure `readOnly` schema properties are not `required`. |
69
+
|[RefPathParametersTransformer](ref-path-parameters.js)| Move Parameters defined on Path Item Objects to global parameters which are referenced in the Path Item. |
70
+
|[RemoveDefaultOnlyResponseProducesTransformer](remove-default-only-response-produces.js)| Remove `produces` from Operations with only a default response. |
71
+
|[RemovePathsWithServersTransformer](remove-paths-with-servers.js)| Remove Path Item Objects which have `servers`. |
72
+
|[RemoveQueryFromPathsTransformer](remove-query-from-paths.js)| Remove query component of path in Paths Object. |
73
+
|[RemoveRefSiblingsTransformer](remove-ref-siblings.js)| Remove properties from Reference Objects. |
74
+
|[RemoveRequestBodyTransformer](remove-request-body.js)| Remove `requestBody` from operations on a given set of HTTP methods. |
75
+
| [RemoveResponseHeadersTransformer](remove-response-headers.js) | Remove `headers` from Response objects.
76
+
|[RemoveSecuritySchemeIfTransformer](remove-security-scheme-if.js)| Remove `security` schemes matching a given predicate. |
77
+
|[RemoveTypeIfTransformer](remove-type-if.js)| Remove `type` from Schema Objects where `type` matches a given predicate. |
|[ReplacedByToDescriptionTransformer](replaced-by-to-description.js)| Convert `x-deprecated.replaced-by` to `x-deprecated.description`, if not present. |
80
+
|[ServerVarsToPathParamsTransformer](server-vars-to-path-params.js)| Convert Server Variables in path portion to Parameters on Path Item Objects. |
81
+
|[ServerVarsToParamHostTransformer](server-vars-to-x-ms-parameterized-host.js)| Convert Server Variables in host portion to `x-ms-parameterized-host`. |
82
+
|[TypeNullToEnumTransformer](type-null-to-enum.js)| Convert Schema Objects with `type: 'null'` to `enum: [null]`. |
83
+
|[TypeNullToNullableTransformer](type-null-to-nullable.js)| Convert Schema Objects with `'null'` in `type` to `nullable: true`. |
84
+
|[UrlencodedToStringTransformer](urlencoded-to-string.js)| Change request parameter types to string for operations which only consume `application/x-www-form-urlencoded`. |
85
+
|[XEnumToXMsEnumTransformer](x-enum-to-ms.js)| Convert `x-enum-descriptions` and `x-enum-varnames` to `x-ms-enum`. |
0 commit comments