Package io.micronaut.gradle.jsonschema
Class DefaultJSONSchemaExtension
java.lang.Object
io.micronaut.gradle.jsonschema.DefaultJSONSchemaExtension
- All Implemented Interfaces:
JSONSchemaExtension
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJSONSchemaExtension
(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration classpath) -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.gradle.jsonschema.JSONSchemaExtension
getVersion
-
Constructor Details
-
DefaultJSONSchemaExtension
@Inject public DefaultJSONSchemaExtension(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration classpath)
-
-
Method Details
-
fromUrl
Description copied from interface:JSONSchemaExtension
Configures generation, given a schema URL.- Specified by:
fromUrl
in interfaceJSONSchemaExtension
- Parameters:
url
- the url string of a json schemaspec
- configuration for the server generation
-
fromFile
Description copied from interface:JSONSchemaExtension
Configures generation, given a schema file.- Specified by:
fromFile
in interfaceJSONSchemaExtension
- Parameters:
file
- the json filespec
- configuration for the server generation
-