Skip to content

Commit

Permalink
remove raw string literal syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nycdotnet committed Jul 27, 2023
1 parent acb7687 commit a235238
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,20 @@ public async Task When_enum_has_description_then_typescript_has_comment()
public async Task When_enum_has_default_and_using_enumstyle_stringliteral_it_defaults_to_stringliteral()
{
//// Arrange
var jsonSchema = """
var jsonSchema = @"
{
"$schema": "http://json-schema.org/draft-04/schema#",
"openapi": "3.1.0",
"title": "TShirt",
"type": "object",
"properties": {
"color": {
"type": "string",
"default": "green",
"enum": ["red", "green", "blue", "black"]
""$schema"": ""http://json-schema.org/draft-04/schema#"",
""openapi"": ""3.1.0"",
""title"": ""TShirt"",
""type"": ""object"",
""properties"": {
""color"": {
""type"": ""string"",
""default"": ""green"",
""enum"": [""red"", ""green"", ""blue"", ""black""]
}
}
}
}
""";
}";

var schema = await JsonSchema.FromJsonAsync(jsonSchema);
var generator = new TypeScriptGenerator(schema, new TypeScriptGeneratorSettings
Expand Down

0 comments on commit a235238

Please sign in to comment.