Class GenerateYamlSchema

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="generate-yaml-schema",
          inheritByDefault=false,
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE,
          threadSafe=true,
          requiresProject=false)
    public class GenerateYamlSchema
    extends GenerateYamlSupport
    • Field Detail

      • bannedDefinitions

        @Parameter
        protected List<String> bannedDefinitions
    • Constructor Detail

      • GenerateYamlSchema

        public GenerateYamlSchema()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • processType

        protected void processType​(com.fasterxml.jackson.databind.node.ObjectNode root,
                                   org.jboss.jandex.ClassInfo type)
      • processFields

        protected void processFields​(com.fasterxml.jackson.databind.node.ObjectNode root,
                                     org.jboss.jandex.ClassInfo type)
      • processMethods

        protected void processMethods​(com.fasterxml.jackson.databind.node.ObjectNode root,
                                      org.jboss.jandex.ClassInfo type)
      • isRequired

        protected boolean isRequired​(org.jboss.jandex.FieldInfo fi)
      • isRequired

        protected boolean isRequired​(org.jboss.jandex.MethodInfo mi)
      • setEnum

        protected static void setEnum​(com.fasterxml.jackson.databind.node.ObjectNode root,
                                      String name,
                                      String enumValues)
      • hasStringConstructor

        protected static boolean hasStringConstructor​(org.jboss.jandex.ClassInfo type)
      • implementsInterface

        protected static boolean implementsInterface​(org.jboss.jandex.ClassInfo type,
                                                     org.jboss.jandex.DotName interfaceName)
      • setJsonSchemaType

        protected void setJsonSchemaType​(com.fasterxml.jackson.databind.node.ObjectNode node,
                                         org.jboss.jandex.Type type)