Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.57 KB

SchemaDefinition.md

File metadata and controls

32 lines (23 loc) · 1.57 KB

SchemaDefinition

The SchemaDefinition message provides definitions for entities and rules, and includes references to clarify whether a name refers to an entity or a rule.

Properties

Name Type Description Notes
entity_definitions Dict[str, EntityDefinition] Map of entity definitions. The key is the entity name, and the value is the corresponding EntityDefinition. [optional]
rule_definitions Dict[str, RuleDefinition] Map of rule definitions. The key is the rule name, and the value is the corresponding RuleDefinition. [optional]
references Dict[str, SchemaDefinitionReference] Map of references to signify whether a string refers to an entity or a rule. [optional]

Example

from permify.models.schema_definition import SchemaDefinition

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

# convert the object into a dict
schema_definition_dict = schema_definition_instance.to_dict()
# create an instance of SchemaDefinition from a dict
schema_definition_from_dict = SchemaDefinition.from_dict(schema_definition_dict)

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