Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "title": "DefiningSQLValidationObject",
    "description": "The request body for validateDefiningSql",
    "properties": {
        "definingSQL": {
            "type": "string",
			"description": "The synapse SQL statement that defines the data in the table."
		}, 
		"definingSQLEntityTypeentityType": {
			"$ref": "org.sagebionetworks.repo.model.table.DefiningSqlEntityType",
			"description": "Which type of entity is this definingSQL for."
		}
    }
}

...

Code Block
languagejson
{
    "title": "DefiningSQLValidationResponseDefiningSqlValidationResponse",
    "description": "The response body from validateDefiningSql",
    "properties": {
        "isValid": {
            "type": "boolean",
			
            "description": "True if the provided SQL is valid, false otherwise."
        },
   "A boolean representing whether or not the provided definingSQL is valid for the given entity type."
		     "invalidReason": {
            "type": "string",
            "description": "If the definingSQL is invalid, this will contain a string describing why it is invalid. Otherwise, this will be null."
        }
    }
}

DefiningSqlEntityType.json

...