References

OpenAPI

  • For the latest openapi.spec3.json you need to replace all occurrences of “oneOf” with “anyOf” because stripe-mock does not support “oneOf”.
  • You can do this with the following command:
 sed -i 's/"oneOf"/"anyOf"/g' openapi.spec3.json

Notes

  • The “unsupported field in JSON schema: ‘oneOf’” error occurs because stripe-mock relies on an underlying validation library (go-jsval) that does not support the oneOf keyword introduced in OpenAPI 3.0.