skip to Main Content

Amazon web services – Why API Gateway allows invalid dates

In AWS API Gateway, I have a model like this: { "required" : [ "validUntil" ], "type" : "object", "properties" : { "validUntil" : { "$ref":"https://apigateway.amazonaws.com/restapis/xxxyyyzzz/models/Timestamp" }, "deadline" : { "$ref":"https://apigateway.amazonaws.com/restapis/xxxyyyzzz/models/Date" } } } When I pass a request with…

VIEW QUESTION

Json – How do I show/autofill all properties of a subschema?

I have the following json schema: { "$schema": "http://json-schema.org/draft-07/schema", "$id": "http://example.com/schemas/example", "type": "object", "title": "example service", "properties": { "dependencies": { "type": "array", "required": [ "items" ], "minItems": 1, "items": { "anyOf": [{ "$ref": "#/definitions/resource1" }, { "$ref": "#/definitions/another_resource" } ]…

VIEW QUESTION

VScode – Unable to load schema for package.json

So I was working on a project and today I saw an error about VScode being unable to resolve package.json schema: CSS contributions to package.json Problems loading reference 'vscode://schemas/settings/configurationDefaults': Unable to load schema from 'vscode://schemas/settings/configurationDefaults': cannot open vscode://schemas/settings/configurationDefaults. Detail: Unable…

VIEW QUESTION

If-then condition in JSON Schema isn't working

Following is the jsonSchema. { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": [ { "type": "object", "properties": { "isMerchant": { "type": "boolean" }, "isAgent": { "type": "boolean" }, "cashLoan": { "type": "boolean" }, "personalDetail": { "type": "string" }, "contact": { "type": "object",…

VIEW QUESTION

Writing a JSON schema, problem with value type change

Here is what is returned from a API: [ { "id": "63c576504988e70xx", "value": { "text": "638dfbd58b3dde05xx" }, "idCustomField": "62ed5fa43601c14xxx", "idModel": "63c576504988e70249xxx", "modelType": "card" }, { "id": "63c576504988e71xx", "value": { "number": "8" }, "idCustomField": "62ed5fa43601c13xxx", "idModel": "63c576504988e70249xxx", "modelType": "card" }, {…

VIEW QUESTION
Back To Top
Search