@fedify/vocab-tools@2.2.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Code generator for Activity Vocabulary APIs
Functions
Loads all schema files in the directory.
Interfaces
The schema of a type. It is used to generate a class.
- compactName: string
The type name used in the compacted JSON-LD document. It is used as the value of the
typefield. - defaultContext: Context
The default JSON-LD context of the type. It is used as the default context of the generated
toJsonLd()method. - description: string
The description of the type. It is used as the doc comment of the generated class.
- entity: boolean
Marks the type an entity type rather than a value type. Turning on this flag will make property accessors for the type asynchronous, so that they can load the values of the properties from the remote server.
- extends: TypeUri
The qualified URIs of the base type of the type (if any).
- name: string
The type name. It is used as the name of the generated class.
- properties: PropertySchema[]
The possible properties of the type.
- typeless: boolean
Whether the type omits
@typein JSON-LD serialization. Whentrue, the generatedtoJsonLd()method will not emit@type(ortypein compact form) in the serialized JSON-LD. The generatedfromJsonLd()method will still accept@typeif present for backward compatibility. - uri: TypeUri
The qualified URI of the type.
Type Aliases
& PropertySchemaTyping
& { functional?: false; pluralName: string; singularAccessor?: boolean; container?: "graph" | "list"; }
|
& PropertySchemaTyping
& { functional: true; redundantProperties?: { uri: string; compactName?: string; }[]; }
The schema of a property. It is used to generate property accessors of a class.