Skip to content

Commit

Permalink
Disable constraint validation for now
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Nov 16, 2021
1 parent 97bb8ac commit c95aea4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oada/services/http-handler/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ export const app = fastify({
},
};
},
validate(value) {
validate(_value) {
/*
if (!Object.keys(EnsureLink).includes(value as string)) {
throw new Error(`Invalid X-OADA-Ensure-Link: ${value}`);
}
*/
},
deriveConstraint(request) {
return request.headers['x-oada-ensure-link'];
Expand Down

0 comments on commit c95aea4

Please sign in to comment.