Skip to content

fix(schema): reject blank verification method descriptors - #92

Draft
DarrenZal wants to merge 1 commit into
regen-network:feat/73-attestation-evidence-c06from
DarrenZal:fix/90-nonblank-method-descriptor
Draft

DarrenZal wants to merge 1 commit into
regen-network:feat/73-attestation-evidence-c06from
DarrenZal:fix/90-nonblank-method-descriptor

Conversation

@DarrenZal

Copy link
Copy Markdown
Contributor

An Attestation using verificationMethod OTHER currently accepts an empty or whitespace-only verificationMethodDescriptor. The conditional presence rule is satisfied by those values, so a record can pass validation without explaining its method.

Require a non-whitespace character in the shared descriptor slot and add public synthetic negative fixtures for Attestation, RegistryReviewAttestation and RegistryFindingAttestation. This draft is stacked on #90 to let the author incorporate the patch without changing the rest of the schema stack.

Validation: pinned LinkML/runtime 1.11.1 and pySHACL 0.40.1; lint, documentation generation and the authored example suite pass (75 successful assertions plus the existing declared SHACL limitation). Six blank/whitespace probes now fail both validators; six affected-class RDF conversions pass. An independent verifier reproduced the descriptor failures.

A missing OTHER descriptor still fails JSON Schema and passes SHACL because the existing conditional LinkML rule is not emitted by the SHACL generator. This patch does not claim to fix that separate, documented limitation.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant