Skip to content

Commit 2fee432

Browse files
committed
add note about getting a textual representation
1 parent a25649c commit 2fee432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_docs/schema/basics.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ var mySchema = JsonSerializer.Deserialize<JsonSchema>(content);
6161

6262
Done.
6363

64+
> Serialization is the mechanic used to obtain a textual representation of a `JsonSchema` object. This may be necessary if you, for example, [define your schemas in code](#schema-inlining) or [generate them from a type](/schema/schemagen/schema-generation/). You can either use the JSON serializer as shown above, or the YAML serializer found in [_Yaml2JsonNode_](/yaml/basics/).
65+
{: .prompt-tip}
66+
6467
### Ahead of Time (AOT) compatibility {#aot}
6568

6669
_JsonSchema.Net_ v6 includes updates to support [Native AOT applications](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/). In order to take advantage of this, there are a few things you'll need to do.

0 commit comments

Comments
 (0)