• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Final
    • None
    • EAP70 -> EAP71
    • None
    • Sprint 38

      Resteasy Yaml Provider is by default disabled reference at https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1.Beta/html-single/developing_web_services_applications/#jaxrs_yaml_provider

      When:
      java class produces any of

      @Produces("text/x-yaml")
      @Produces("text/yaml")
      @Produces("application/x-yaml") 
      

      Perform check:

      • it has to have defined dependencies in pom.xml like:
        <dependency>
            <groupId>org.jboss.resteasy</groupId>
            <artifactId>resteasy-yaml-provider</artifactId>
            <version>${version.org.jboss.resteasy}</version>
            <scope>provided</scope>
        </dependency>
        
        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>${version.org.yaml.snakeyaml}</version>
        </dependency>
        
      • existing file in application META-INF/services/javax.ws.rs.ext.Providers with content of YAML provider class:
        org.jboss.resteasy.plugins.providers.YamlProvider

              mnovotny@redhat.com Marek Novotny
              mnovotny@redhat.com Marek Novotny
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: