src/nimjsonpkg/types

Types

FieldDefinition = object
  
ObjectDefinition = object
  
UnsupportedRefError = object of CatchableError
UnsupportedTypeError = object of CatchableError

Procs

proc addFieldDefinition(self: var ObjectDefinition; fieldDef: FieldDefinition) {.
    ...raises: [], tags: [], forbids: [].}
func newFieldDefinition(name: string; typ: string; isPublic: bool;
                        forceBackquote: bool; isSeq: bool; isOption = false): FieldDefinition {.
    ...raises: [ValueError], tags: [], forbids: [].}
func newNilTypeObjectDefinition(isPublic, forceBackquote: bool): ObjectDefinition {.
    ...raises: [ValueError], tags: [], forbids: [].}
func newObjectDefinition(name: string;
                         isNilType, isPublic, forceBackquote: bool;
                         primitiveType = ""; isSeq = false): ObjectDefinition {.
    ...raises: [ValueError], tags: [], forbids: [].}
func toDefinitionString(self: seq[ObjectDefinition]): string {.
    ...raises: [ValueError], tags: [], forbids: [].}