1// Copyright 2015 xeipuuv ( https://github.com/xeipuuv )
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//   http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// author           xeipuuv
16// author-github    https://github.com/xeipuuv
17// author-mail      xeipuuv@gmail.com
18//
19// repository-name  gojsonschema
20// repository-desc  An implementation of JSON Schema, based on IETF's draft v4 - Go language.
21//
22// description      Contains const types for schema and JSON.
23//
24// created          28-02-2013
25
26package gojsonschema
27
28const (
29	TYPE_ARRAY   = `array`
30	TYPE_BOOLEAN = `boolean`
31	TYPE_INTEGER = `integer`
32	TYPE_NUMBER  = `number`
33	TYPE_NULL    = `null`
34	TYPE_OBJECT  = `object`
35	TYPE_STRING  = `string`
36)
37
38var JSON_TYPES []string
39var SCHEMA_TYPES []string
40
41func init() {
42	JSON_TYPES = []string{
43		TYPE_ARRAY,
44		TYPE_BOOLEAN,
45		TYPE_INTEGER,
46		TYPE_NUMBER,
47		TYPE_NULL,
48		TYPE_OBJECT,
49		TYPE_STRING}
50
51	SCHEMA_TYPES = []string{
52		TYPE_ARRAY,
53		TYPE_BOOLEAN,
54		TYPE_INTEGER,
55		TYPE_NUMBER,
56		TYPE_OBJECT,
57		TYPE_STRING}
58}
59