hapic
hapic copied to clipboard
Custom error builder is not added to spec.yml
Packages versions :
hapic==0.64
apispec==1.0.0b5
apispec-hapic-marshmallow==0.2
apispec-marshmallow-advanced==0.3
Using custom error schema, in Tracim, this way:
context = PyramidContext(
configurator=configurator,
default_error_builder=ErrorSchema(),
debug=app_config.DEBUG,
)
i get lot of error like theses in swagger ui view:
Resolver error at paths./api/v2/auth/password/reset/modify.post.responses.400.schema.$ref
Could not resolve reference because of: Could not resolve pointer: /definitions/ErrorSchema does not exist in document
Resolver error at paths./api/v2/auth/password/reset/request.post.responses.400.schema.$ref
Could not resolve reference because of: Could not resolve pointer: /definitions/ErrorSchema does not exist in document
Resolver error at paths./api/v2/auth/password/reset/token/check.post.responses.400.schema.$ref
Could not resolve reference because of: Could not resolve pointer: /definitions/ErrorSchema does not exist in document
This issue doesnt happened with older version :
apispec-hapic-marshmallow==0.2
apispec-marshmallow-advanced==0.3
apispec==1.0.0b5
hapic[marshmallow]==0.62