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 TypeMethodDescriptionvoidfromFile(File file, org.gradle.api.Action<? super JsonSchemaSpec> spec) Configures generation, given a schema file.voidfromUrl(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, waitMethods 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:JSONSchemaExtensionConfigures generation, given a schema URL.- Specified by:
fromUrlin interfaceJSONSchemaExtension- Parameters:
url- the url string of a json schemaspec- configuration for the server generation
-
fromFile
Description copied from interface:JSONSchemaExtensionConfigures generation, given a schema file.- Specified by:
fromFilein interfaceJSONSchemaExtension- Parameters:
file- the json filespec- configuration for the server generation
-