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
I'm not quite sure if this is a problem with the VC HTTP API OpenAPI spec, or if it's a problem with the OpenAPI generators themselves (I've filed an issue on OpenAPI as well), but the fact that the spec produces non-compiling code is probably deterring users (including myself).
Reproduction instructions -- this will use OpenAPI's online generator using the rust-server generator:
In an attempt to workaround the problem, I tried changing the oneOf to use of a single schema; I changed within verifier.yml:
/presentations/verify:
post:
description: Verifies a verifiablePresentation and returns a verificationResult
in the response body. Given the possibility of denial of service, buffer
overflow, or other style attacks, an implementation is permitted to rate limit
or restrict requests against this API endpoint to those requests that contain
only a single credential with a 413 or 429 error code as appropriate.
operationId: verifyPresentation
requestBody:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/VerifyPresentationRequest'
- $ref: '#/components/schemas/ProoflessVerifyPresentationRequest'
to
/presentations/verify:
post:
description: Verifies a verifiablePresentation and returns a verificationResult
in the response body. Given the possibility of denial of service, buffer
overflow, or other style attacks, an implementation is permitted to rate limit
or restrict requests against this API endpoint to those requests that contain
only a single credential with a 413 or 429 error code as appropriate.
operationId: verifyPresentation
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyPresentationRequest'
(yes, this eliminates #/components/schemas/ProoflessVerifyPresentationRequest, so it's not a fix), and it produced compiling code at least using the OpenAPI rust-server generator.
The text was updated successfully, but these errors were encountered:
I'm not quite sure if this is a problem with the VC HTTP API OpenAPI spec, or if it's a problem with the OpenAPI generators themselves (I've filed an issue on OpenAPI as well), but the fact that the spec produces non-compiling code is probably deterring users (including myself).
Reproduction instructions -- this will use OpenAPI's online generator using the
rust-server
generator:The key problem is the presence of
UNKNOWN_BASE_TYPE
(and related), which prevents the generated code from compiling.I tried with a few other generators, including
go
,javascript
, andjava
and they all produced similar results with analogous "unknown" identifiers.This is due to use of
oneOf
inverifier.yml
under/presentations/verify
POST, seeIn an attempt to workaround the problem, I tried changing the
oneOf
to use of a single schema; I changed withinverifier.yml
:to
(yes, this eliminates
#/components/schemas/ProoflessVerifyPresentationRequest
, so it's not a fix), and it produced compiling code at least using the OpenAPIrust-server
generator.The text was updated successfully, but these errors were encountered: