id: "http://firebase.com/schema#"
$schema: "http://firebase.com/schema#"
description: "Core meta-schema for validating Firebase schema types"

anyOf:
  - {$ref: "http://firebase.com/schema/types/object#"}
  - {$ref: "http://firebase.com/schema/types/string#"}
  - {$ref: "http://firebase.com/schema/types/boolean#"}
  - {$ref: "http://firebase.com/schema/types/number#"}
  - {$ref: "http://firebase.com/schema/types/any#"}

  - properties:
      type: {type: string}
      constraint:
        anyOf:
          - {type: string}
          - {type: boolean}

#can't make additionalProperties false as this does not include properties inherited from anyOf, or allOf
