Skip to content

Commit

Permalink
Merge pull request #283 from cotype/feature/booleanQuery
Browse files Browse the repository at this point in the history
fix(server): QS filters boolean Values, so boolean field as string wi…
  • Loading branch information
mo-hh234 authored Jul 28, 2020
2 parents 0ee8cbb + a51613c commit 5d1d4e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/content/rest/describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ const describeModel = (
in: "query",
name: `data.${prefix + field}[eq]`,
schema: {
type: "boolean"
type: "string",
enum: ["true", "false"]
}
});
return;
Expand Down Expand Up @@ -223,7 +224,8 @@ const describeModel = (
in: "query",
name: `data.${prefix + field}[eq]`,
schema: {
type: "boolean"
type: "string",
enum: ["true", "false"]
}
});
return;
Expand Down

0 comments on commit 5d1d4e4

Please sign in to comment.