-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1897 from microsoft/mk/define-json-schema-type-as…
…-enum Define JSON schema's Type property as a flaggable enum to allow storing multiple values
- Loading branch information
Showing
55 changed files
with
940 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using System; | ||
|
||
namespace Microsoft.OpenApi.Models | ||
{ | ||
/// <summary> | ||
/// Represents the type of a JSON schema. | ||
/// </summary> | ||
[Flags] | ||
public enum JsonSchemaType | ||
{ | ||
/// <summary> | ||
/// Represents a null type. | ||
/// </summary> | ||
Null = 1, | ||
|
||
/// <summary> | ||
/// Represents a boolean type. | ||
/// </summary> | ||
Boolean = 2, | ||
|
||
/// <summary> | ||
/// Represents an integer type. | ||
/// </summary> | ||
Integer = 4, | ||
|
||
/// <summary> | ||
/// Represents a number type. | ||
/// </summary> | ||
Number = 8, | ||
|
||
/// <summary> | ||
/// Represents a string type. | ||
/// </summary> | ||
String = 16, | ||
|
||
/// <summary> | ||
/// Represents an object type. | ||
/// </summary> | ||
Object = 32, | ||
|
||
/// <summary> | ||
/// Represents an array type. | ||
/// </summary> | ||
Array = 64, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.