Validates a XYO schema structure and existence

Constructors

Properties

schema?: string

Accessors

  • get isLowercase(): boolean
  • Checks whether the schema is all lowercase

    Returns boolean

    boolean

  • get parts(): undefined | string[]
  • The schema converted into a string array split on '.'

    Returns undefined | string[]

    string[]

  • get rootDomain(): undefined | string
  • The rootDomain is the first two levels of the schema, in reverse order This can be used to determine who 'owns' that schema, based on domain registration

    Returns undefined | string

    string

Methods

  • Determines how many levels of the schema's reverse domain pass DNS resolution

    Returns Promise<number>

    number (0 if none exist)

  • Checks if the root domain validates via DNS resolution

    Returns Promise<boolean>

    boolean