Skip to content

Ensure namespace is a prefix of identity on object creation#332

Merged
tcmitchell merged 1 commit intoSynBioDex:mainfrom
tcmitchell:277-namespace-mismatch
Oct 15, 2021
Merged

Ensure namespace is a prefix of identity on object creation#332
tcmitchell merged 1 commit intoSynBioDex:mainfrom
tcmitchell:277-namespace-mismatch

Conversation

@tcmitchell
Copy link
Copy Markdown
Collaborator

On object creation if the namespace does not match the identity raise a ValueError to prevent a user from creating an invalid object.

Also correct an errant unit test that had mismatched namespace and identity. Oops!

Fixes #277

On object creation if the namespace does not match the identity raise
a ValueError to prevent a user from creating an invalid object.

Also correct an errant unit test that had mismatched namespace and
identity. Oops!
@tcmitchell tcmitchell added this to the beta milestone Oct 15, 2021
@tcmitchell tcmitchell self-assigned this Oct 15, 2021
@tcmitchell tcmitchell merged commit 558d531 into SynBioDex:main Oct 15, 2021
@tcmitchell tcmitchell deleted the 277-namespace-mismatch branch October 15, 2021 18:47
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.

Namespace can mismatch when full URI is supplied

1 participant