Lines Matching refs:_writer

39     private readonly JsonWriter _writer;  field in Newtonsoft.Json.Schema.JsonSchemaWriter
45 _writer = writer; in JsonSchemaWriter()
53 _writer.WriteStartObject(); in ReferenceOrWriteSchema()
54 _writer.WritePropertyName(JsonSchemaConstants.ReferencePropertyName); in ReferenceOrWriteSchema()
55 _writer.WriteValue(schema.Id); in ReferenceOrWriteSchema()
56 _writer.WriteEndObject(); in ReferenceOrWriteSchema()
71 _writer.WriteStartObject(); in WriteSchema()
72 WritePropertyIfNotNull(_writer, JsonSchemaConstants.IdPropertyName, schema.Id); in WriteSchema()
73 WritePropertyIfNotNull(_writer, JsonSchemaConstants.TitlePropertyName, schema.Title); in WriteSchema()
74 … WritePropertyIfNotNull(_writer, JsonSchemaConstants.DescriptionPropertyName, schema.Description); in WriteSchema()
75 WritePropertyIfNotNull(_writer, JsonSchemaConstants.RequiredPropertyName, schema.Required); in WriteSchema()
76 WritePropertyIfNotNull(_writer, JsonSchemaConstants.ReadOnlyPropertyName, schema.ReadOnly); in WriteSchema()
77 WritePropertyIfNotNull(_writer, JsonSchemaConstants.HiddenPropertyName, schema.Hidden); in WriteSchema()
78 WritePropertyIfNotNull(_writer, JsonSchemaConstants.TransientPropertyName, schema.Transient); in WriteSchema()
80 WriteType(JsonSchemaConstants.TypePropertyName, _writer, schema.Type.Value); in WriteSchema()
83 _writer.WritePropertyName(JsonSchemaConstants.AdditionalPropertiesPropertyName); in WriteSchema()
84 _writer.WriteValue(schema.AllowAdditionalProperties); in WriteSchema()
90 _writer.WritePropertyName(JsonSchemaConstants.AdditionalPropertiesPropertyName); in WriteSchema()
94 …WriteSchemaDictionaryIfNotNull(_writer, JsonSchemaConstants.PropertiesPropertyName, schema.Propert… in WriteSchema()
95 …WriteSchemaDictionaryIfNotNull(_writer, JsonSchemaConstants.PatternPropertiesPropertyName, schema.… in WriteSchema()
97 WritePropertyIfNotNull(_writer, JsonSchemaConstants.MinimumPropertyName, schema.Minimum); in WriteSchema()
98 WritePropertyIfNotNull(_writer, JsonSchemaConstants.MaximumPropertyName, schema.Maximum); in WriteSchema()
99 …WritePropertyIfNotNull(_writer, JsonSchemaConstants.ExclusiveMinimumPropertyName, schema.Exclusive… in WriteSchema()
100 …WritePropertyIfNotNull(_writer, JsonSchemaConstants.ExclusiveMaximumPropertyName, schema.Exclusive… in WriteSchema()
101 …WritePropertyIfNotNull(_writer, JsonSchemaConstants.MinimumLengthPropertyName, schema.MinimumLengt… in WriteSchema()
102 …WritePropertyIfNotNull(_writer, JsonSchemaConstants.MaximumLengthPropertyName, schema.MaximumLengt… in WriteSchema()
103 …WritePropertyIfNotNull(_writer, JsonSchemaConstants.MinimumItemsPropertyName, schema.MinimumItems); in WriteSchema()
104 …WritePropertyIfNotNull(_writer, JsonSchemaConstants.MaximumItemsPropertyName, schema.MaximumItems); in WriteSchema()
105 … WritePropertyIfNotNull(_writer, JsonSchemaConstants.DivisibleByPropertyName, schema.DivisibleBy); in WriteSchema()
106 WritePropertyIfNotNull(_writer, JsonSchemaConstants.FormatPropertyName, schema.Format); in WriteSchema()
107 WritePropertyIfNotNull(_writer, JsonSchemaConstants.PatternPropertyName, schema.Pattern); in WriteSchema()
110 _writer.WritePropertyName(JsonSchemaConstants.EnumPropertyName); in WriteSchema()
111 _writer.WriteStartArray(); in WriteSchema()
114 token.WriteTo(_writer); in WriteSchema()
116 _writer.WriteEndArray(); in WriteSchema()
120 _writer.WritePropertyName(JsonSchemaConstants.DefaultPropertyName); in WriteSchema()
121 schema.Default.WriteTo(_writer); in WriteSchema()
125 _writer.WritePropertyName(JsonSchemaConstants.OptionsPropertyName); in WriteSchema()
126 _writer.WriteStartArray(); in WriteSchema()
129 _writer.WriteStartObject(); in WriteSchema()
130 _writer.WritePropertyName(JsonSchemaConstants.OptionValuePropertyName); in WriteSchema()
131 option.Key.WriteTo(_writer); in WriteSchema()
134 _writer.WritePropertyName(JsonSchemaConstants.OptionLabelPropertyName); in WriteSchema()
135 _writer.WriteValue(option.Value); in WriteSchema()
137 _writer.WriteEndObject(); in WriteSchema()
139 _writer.WriteEndArray(); in WriteSchema()
142 WriteType(JsonSchemaConstants.DisallowPropertyName, _writer, schema.Disallow.Value); in WriteSchema()
145 _writer.WritePropertyName(JsonSchemaConstants.ExtendsPropertyName); in WriteSchema()
148 _writer.WriteEndObject(); in WriteSchema()
171 _writer.WritePropertyName(JsonSchemaConstants.ItemsPropertyName); in WriteItems()
179 _writer.WriteStartArray(); in WriteItems()
184 _writer.WriteEndArray(); in WriteItems()