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
The `jsonpatch` option allows you to apply RFC 6902 JSON Patch operations to the OpenAPI specification before processing. This is useful for fixing schema issues or making adjustments without modifying the source file.
The JSON Patch operations support all standard operations:
132
+
-`add`: Add a new value
133
+
-`remove`: Remove a value
134
+
-`replace`: Replace an existing value
135
+
-`move`: Move a value from one location to another
136
+
-`copy`: Copy a value from one location to another
137
+
-`test`: Test that a value equals a specified value
138
+
139
+
For more information about JSON Patch format, see [RFC 6902](https://tools.ietf.org/html/rfc6902) and the [fast-json-patch documentation](https://www.npmjs.com/package/fast-json-patch).
140
+
93
141
## Contributing 🤝
94
142
95
143
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
expect(patchedDef.description).toBe('IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.');
0 commit comments