Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.15 KB

File metadata and controls

37 lines (28 loc) · 1.15 KB

JsonSchema

Properties

Name Type Description Notes
var_schema str [optional]
id str [optional]
title str [optional]
description str [optional]
definitions object [optional]
type str [optional]
properties object [optional]
additional_properties bool [optional]
required List[str] [optional]

Example

from docspring.models.json_schema import JsonSchema

# TODO update the JSON string below
json = "{}"
# create an instance of JsonSchema from a JSON string
json_schema_instance = JsonSchema.from_json(json)
# print the JSON string representation of the object
print(JsonSchema.to_json())

# convert the object into a dict
json_schema_dict = json_schema_instance.to_dict()
# create an instance of JsonSchema from a dict
json_schema_from_dict = JsonSchema.from_dict(json_schema_dict)

[Back to Model list] [Back to API list] [Back to README]