Skip to content

Commit

Permalink
Fix/make iql queries atType optional again (#14)
Browse files Browse the repository at this point in the history
* fix: make the iqlquery atType optional again

* chore: bump the runtime version
  • Loading branch information
jkoenig134 authored Feb 6, 2024
1 parent c3fcf5e commit b08c71d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nmshd/runtime",
"version": "3.5.1",
"version": "3.5.2",
"description": "The enmeshed client runtime.",
"homepage": "https://enmeshed.eu",
"repository": {
Expand Down
50 changes: 23 additions & 27 deletions packages/runtime/src/useCases/common/Schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15916,40 +15916,36 @@ export const ExecuteIQLQueryRequest: any = {
"type": "object",
"properties": {
"query": {
"$ref": "#/definitions/IQLQueryJSON"
"type": "object",
"additionalProperties": false,
"properties": {
"@type": {
"type": "string",
"const": "IQLQuery"
},
"queryString": {
"type": "string"
},
"attributeCreationHints": {
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
},
"@context": {
"type": "string"
},
"@version": {
"type": "string"
}
},
"required": [
"queryString"
]
}
},
"required": [
"query"
],
"additionalProperties": false
},
"IQLQueryJSON": {
"type": "object",
"properties": {
"@type": {
"type": "string",
"const": "IQLQuery"
},
"@context": {
"type": "string"
},
"@version": {
"type": "string"
},
"queryString": {
"type": "string"
},
"attributeCreationHints": {
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
}
},
"required": [
"@type",
"queryString"
],
"additionalProperties": false
},
"IQLQueryCreationHintsJSON": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
import { AttributeMapper } from "./AttributeMapper";

export interface ExecuteIQLQueryRequest {
query: IQLQueryJSON;
query: Omit<IQLQueryJSON, "@type"> & { "@type"?: "IQLQuery" };
}

class Validator extends SchemaValidator<ExecuteIQLQueryRequest> {
Expand Down

0 comments on commit b08c71d

Please sign in to comment.