createFromUrl static method
Future<JsonSchema>
createFromUrl(
- String schemaUrl, {
- SchemaVersion? schemaVersion,
- List<
CustomVocabulary> ? customVocabularies, - Map<
String, ValidationContext Function(ValidationContext context, String? instanceData)> customFormats = const {},
Create a schema from a URL.
This method is asynchronous to support automatic fetching of sub-JsonSchemas for items, properties, and sub-properties of the root schema.
Implementation
static Future<JsonSchema> createFromUrl(
String schemaUrl, {
SchemaVersion? schemaVersion,
List<CustomVocabulary>? customVocabularies,
Map<
String,
ValidationContext Function(
ValidationContext context, String? instanceData)>
customFormats = const {},
}) {
return createClient().createFromUrl(schemaUrl,
schemaVersion: schemaVersion,
customVocabularies: customVocabularies,
customFormats: customFormats);
}