Skip to content

Commit

Permalink
Remove identityCheck from the fixture form #patch (#251)
Browse files Browse the repository at this point in the history
When unpopulated donor.identityCheck and certificateProvider.identityCheck are being sent with blank values. This causes an Unmarshalling error in the API. To allow creation of test data for a demo of paper ID these are temporarily being removed from the fixture form.
  • Loading branch information
ramchale authored Aug 20, 2024
1 parent 03748d2 commit e8cc344
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fixtures/static/js/json-schema-editor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ export class JsonSchemaEditor {
const response = await fetch(url);
this.schema = await response.json();

// TODO - Find a better solution
// HACK - Remove these from the schema so that blank values are not sent to the API
delete this.schema.properties.donor.properties.identityCheck;
delete this.schema.properties.certificateProvider.properties.identityCheck;

const $container = document.createElement("div");
this.$formContainer = $container;

Expand Down

0 comments on commit e8cc344

Please sign in to comment.