Package io.micronaut.gradle.jsonschema
Interface JSONSchemaExtension
- All Known Implementing Classes:
DefaultJSONSchemaExtension
public interface JSONSchemaExtension
Configures the JSON Schema code generator.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fromFile
(File file, org.gradle.api.Action<? super JsonSchemaSpec> spec) Configures generation, given a schema file.void
fromUrl
(String url, org.gradle.api.Action<? super JsonSchemaSpec> spec) Configures generation, given a schema URL.org.gradle.api.provider.Property<String>
The version of the Micronaut JSON Schema generator.
-
Method Details
-
getVersion
org.gradle.api.provider.Property<String> getVersion()The version of the Micronaut JSON Schema generator.- Returns:
- the version
-
fromUrl
Configures generation, given a schema URL.- Parameters:
url
- the url string of a json schemaspec
- configuration for the server generation
-
fromFile
Configures generation, given a schema file.- Parameters:
file
- the json filespec
- configuration for the server generation
-