Functions working with the specomatic schema.
Functions working with the specomatic schema.
Returns a map of fields to field definitions, with the entity type assoc'd to the :etype key, in schema (memoized).
Returns a map of fields to field definitions, with the entity type assoc'd to the :etype key, in `schema` (memoized).
(all-field-defs-including-etype* schema)Returns a map of fields to field definitions, with the entity type assoc'd to the :etype key, in schema.
Returns a map of fields to field definitions, with the entity type assoc'd to the :etype key, in `schema`.
Returns all fields defined in schema (memoized).
Returns all fields defined in `schema` (memoized).
(all-fields* schema)Returns all fields defined in schema.
Returns all fields defined in `schema`.
(defaults-schema schema)Given a schema, returns a (partial) schema containing defaults.
Given a `schema`, returns a (partial) schema containing defaults.
(dispatch schema etype field)Given schema, entity type etype and field, returns the spec for the field if it is a keyword, or a description thereof if it is not.
Given `schema`, entity type `etype` and `field`, returns the spec for the field if it is a keyword, or a description thereof if it is not.
(display-name-fields schema etype)Given the entity type etype, returns a set of fields (keywords) that are part of the display name of the entity type.
Given the entity type `etype`, returns a set of fields (keywords) that are part of the display name of the entity type.
(etype-def schema etype)Given schema and entity type etype, returns a definition of the entity type.
Given `schema` and entity type `etype`, returns a definition of the entity type.
(etype-from-field schema field)Given schema and field, returns the entity type of the field
Given `schema` and `field`, returns the entity type of the field
(etypes schema)Given schema, returns a sequence of all entity types defined in it.
Given `schema`, returns a sequence of all entity types defined in it.
(field-def schema field)Given schema and field, returns the definition of the field.
Given `schema` and `field`, returns the definition of the field.
(field-defined? schema field)Checks if field is defined in schema.
Checks if `field` is defined in `schema`.
(field-defs schema etype)Given schema and entity type etype, returns a map of fields (keywords) to their definitions.
Given `schema` and entity type `etype`, returns a map of fields (keywords) to their definitions.
(field-defs-including-etype schema etype)Given schema and entity type etype, returns a map of fields (keywords) to their definitions, with the entity type assoc'd to the :etype key.
Given `schema` and entity type `etype`, returns a map of fields (keywords) to their definitions, with the entity type assoc'd to the :etype key.
(full-schema schema overrides)Given a schema returned from specomatic.registry/schema spec and optionally overrides to override defaults,
returns an schema enriched with defaults and inverse fields.
Given a `schema` returned from `specomatic.registry/schema` spec and optionally `overrides` to override defaults, returns an schema enriched with defaults and inverse fields.
(id-field schema etype)Returns the id keyword for the entity type etype using the schema.
Returns the id keyword for the entity type `etype` using the `schema`.
(inverse-schema schema overrides)Given a schema and overrides to override inverse field keywords, returns a (partial) schema containing inverse field definitions.
Given a `schema` and `overrides` to override inverse field keywords, returns a (partial) schema containing inverse field definitions.
(reference-colls-by-owning-etype schema)Returns a map of entity types to a map of reference collections owmed by them to their field definitions.
Returns a map of entity types to a map of reference collections owmed by them to their field definitions.
(required-fields schema etype)Given schema and the entity type etype, returns the set of required fields.
Given `schema` and the entity type `etype`, returns the set of required fields.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |