private void ProcessSchemaProperties()

in src/Elastic.Apm/Libraries/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs [198:293]


		private void ProcessSchemaProperties(JObject schemaObject)
		{
			foreach (var property in schemaObject)
			{
				switch (property.Key)
				{
					case JsonSchemaConstants.TypePropertyName:
						CurrentSchema.Type = ProcessType(property.Value);
						break;
					case JsonSchemaConstants.IdPropertyName:
						CurrentSchema.Id = (string)property.Value;
						break;
					case JsonSchemaConstants.TitlePropertyName:
						CurrentSchema.Title = (string)property.Value;
						break;
					case JsonSchemaConstants.DescriptionPropertyName:
						CurrentSchema.Description = (string)property.Value;
						break;
					case JsonSchemaConstants.PropertiesPropertyName:
						CurrentSchema.Properties = ProcessProperties(property.Value);
						break;
					case JsonSchemaConstants.ItemsPropertyName:
						ProcessItems(property.Value);
						break;
					case JsonSchemaConstants.AdditionalPropertiesPropertyName:
						ProcessAdditionalProperties(property.Value);
						break;
					case JsonSchemaConstants.AdditionalItemsPropertyName:
						ProcessAdditionalItems(property.Value);
						break;
					case JsonSchemaConstants.PatternPropertiesPropertyName:
						CurrentSchema.PatternProperties = ProcessProperties(property.Value);
						break;
					case JsonSchemaConstants.RequiredPropertyName:
						CurrentSchema.Required = (bool)property.Value;
						break;
					case JsonSchemaConstants.RequiresPropertyName:
						CurrentSchema.Requires = (string)property.Value;
						break;
					case JsonSchemaConstants.MinimumPropertyName:
						CurrentSchema.Minimum = (double)property.Value;
						break;
					case JsonSchemaConstants.MaximumPropertyName:
						CurrentSchema.Maximum = (double)property.Value;
						break;
					case JsonSchemaConstants.ExclusiveMinimumPropertyName:
						CurrentSchema.ExclusiveMinimum = (bool)property.Value;
						break;
					case JsonSchemaConstants.ExclusiveMaximumPropertyName:
						CurrentSchema.ExclusiveMaximum = (bool)property.Value;
						break;
					case JsonSchemaConstants.MaximumLengthPropertyName:
						CurrentSchema.MaximumLength = (int)property.Value;
						break;
					case JsonSchemaConstants.MinimumLengthPropertyName:
						CurrentSchema.MinimumLength = (int)property.Value;
						break;
					case JsonSchemaConstants.MaximumItemsPropertyName:
						CurrentSchema.MaximumItems = (int)property.Value;
						break;
					case JsonSchemaConstants.MinimumItemsPropertyName:
						CurrentSchema.MinimumItems = (int)property.Value;
						break;
					case JsonSchemaConstants.DivisibleByPropertyName:
						CurrentSchema.DivisibleBy = (double)property.Value;
						break;
					case JsonSchemaConstants.DisallowPropertyName:
						CurrentSchema.Disallow = ProcessType(property.Value);
						break;
					case JsonSchemaConstants.DefaultPropertyName:
						CurrentSchema.Default = property.Value.DeepClone();
						break;
					case JsonSchemaConstants.HiddenPropertyName:
						CurrentSchema.Hidden = (bool)property.Value;
						break;
					case JsonSchemaConstants.ReadOnlyPropertyName:
						CurrentSchema.ReadOnly = (bool)property.Value;
						break;
					case JsonSchemaConstants.FormatPropertyName:
						CurrentSchema.Format = (string)property.Value;
						break;
					case JsonSchemaConstants.PatternPropertyName:
						CurrentSchema.Pattern = (string)property.Value;
						break;
					case JsonSchemaConstants.EnumPropertyName:
						ProcessEnum(property.Value);
						break;
					case JsonSchemaConstants.ExtendsPropertyName:
						ProcessExtends(property.Value);
						break;
					case JsonSchemaConstants.UniqueItemsPropertyName:
						CurrentSchema.UniqueItems = (bool)property.Value;
						break;
				}
			}
		}