Class ASTSchema
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.ASTSchema
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
Endpoint for exposing the AST JSON schema.
- Author:
- Andrew Bayer
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doJson
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) static com.github.fge.jsonschema.main.JsonSchema
Get the Pipeline Config AST JSON schema.
-
Field Details
-
AST_SCHEMA_URL
- See Also:
-
-
Constructor Details
-
ASTSchema
public ASTSchema()
-
-
Method Details
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
doJson
public void doJson(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException - Throws:
IOException
javax.servlet.ServletException
-
getJSONSchema
public static com.github.fge.jsonschema.main.JsonSchema getJSONSchema() throws com.github.fge.jsonschema.core.exceptions.ProcessingExceptionGet the Pipeline Config AST JSON schema.- Returns:
- the schema in
JsonSchema
form. - Throws:
com.github.fge.jsonschema.core.exceptions.ProcessingException
- if there are issues reading the schema
-