-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PublishRevocations
model replaced with PublishRevocationsSchemaAnoncreds
#2901
Comments
Additionally, I notice that the old Revocation API, in the The old class CredRevRecordResult(BaseModel):
result: Optional[IssuerCredRevRecordSchemaAnoncreds] = None with the new class CredRevRecordResultSchemaAnoncreds(BaseModel):
result: Optional[IssuerCredRevRecord] = None Looks like someone used find-replace-all a bit too liberally! But idk, maybe there's method behind it? |
I likely made a mistake here. I'll have a look. Thanks for spotting it. The additional names were added because we are loading the schemas for both anoncreds and the existing modules and they conflicted. They are similar but slightly different, and I think you're right, I mixed them up a bit. |
Good day
I notice from working with the openapi spec, in 0.12.0 there is a new model:
PublishRevocationsSchemaAnoncreds
.It looks like this (from running openapi-generator):
This new model is now used to replace the previous
PublishRevocations
models in the Revocation API:clear_pending_revocations
andpublish_revocations
PublishRevocationsSchemaAnoncreds
instead of the oldPublishRevocations
TxnOrPublishRevocationsResult
model, which was previously usingPublishRevocations
, is now also usingPublishRevocationsSchemaAnoncreds
, which seems to be an unnecessary change.Now, the confusion set in when I noticed the Anoncreds Revocation API is using the old
PublishRevocations
, instead of the newPublishRevocationsSchemaAnoncreds
. The naming suggests that this is an oversight.The old model was modified to now take extra
options
, which thePublishRevocationsSchemaAnoncreds
does not.So, my guess is that
PublishRevocationsSchemaAnoncreds
is the model that should be used in the new AnoncredsRevocationApi, and that this is the model that should have the extraoptions
field, not the old one.All in all, this isn't problematic for the internals of ACA-Py, because the models are identical, it's just a difference in names, with the extra options field. But, the model names propagate to the openapi spec, which is causing some confusion!
If my observations are correct that this is an oversight, then do let me know and I can contribute a quick renaming fix.
The text was updated successfully, but these errors were encountered: