Giter VIP home page Giter VIP logo

eiger's Introduction

Hi everyone!

eiger's People

Contributors

dependabot[bot] avatar filip26 avatar mamund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mamund

eiger's Issues

Java 8: A JNI error has occurred

A JNI error has occurred. The current Download Java for Mac OS X page provides Java class file version 52.0 download but your program compiled with version 55.0.

% alps.sh     
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/apicatalog/alps/cli/AlpsCommand has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Print a warning in a case of unknown/ignored stuff

Is your feature request related to a problem? Please describe.
An unknown content (attributes,elements) is silently ignored by a parser.

Describe the solution you'd like
A warning should be printed to a console.

ALPS+YAML representation

Is your feature request related to a problem? Please describe.
ALPS+YAML should be supported as an alternative representation to ALPS+XML and ALPS+JSON

Describe the solution you'd like
To keep the new representation simple and coherent with the existing ones a strict YAML approach should be taken.

add Maven wrapper

Describe the solution you'd like
add mvnw and mvnw.cmd commands to the root directory to allow building the project without having Maven installed.

alps.title element & descriptor.def attribute are not converted

Describe the bug

Try to convert ALPS using https://eiger.apicatalog.com/, alps.title element & descriptor.def attribute have not been converted.

To Reproduce

Input this xml.

<?xml version="1.0" encoding="UTF-8"?>
<alps version="1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="https://alps-io.github.io/schemas/alps.xsd">
    <title>MyAlps</title>
    <descriptor id="id" def="https://schema.org/identifier"/>
</alps>

Output this json.

{
    "alps": {
        "version": "1.0",
        "descriptor": {
            "id": "id",
            "type": "semantic"
        }
    }
}

Expected behavior

Output this json.

{
    "alps": {
        "version": "1.0",
        "title": "MyAlps",
        "descriptor": {
            "id": "id",
            "type": "semantic",
            "def": "https://schema.org/identifier"
        }
    }
}

Additional context

Parse and process custom 'ext' attributes

Describe the bug
A custom attribute on 'ext' element is ignored, but should be parsed and processed as a custom attribute.

To Reproduce

    "ext": [
      {
        "type": "metadata",
        "id": "title",
        "name": "title",
        "value": "Company API",
        "tags": "oas"
      },
      {
        "type": "metadata",
        "id": "id",
        "name": "id",
        "value": "http://alps.io/profiles/mamund/company",
        "tags": "oas"
      },
      {
        "type": "metadata",
        "id":"root",
        "name": "root",
        "value": "http://api.example.org/company",
        "tags": "oas"
      }
    ]

name, type and tags are ignored

Expected behavior
name, type and tags should be parsed and processed as custom attributes

Rebrading

Re-brand the repository name, artifacts, packages, etc. to use code name eiger instead of alps

Suppress slf4j output when running alps.sh

$ wget -q -O- https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml | alps.sh transform --source=oas --target=xml --pretty --verbose
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.