Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime incompatibility - NoSuchMethodError #41

Open
joshdanhall opened this issue Feb 5, 2021 · 1 comment
Open

Runtime incompatibility - NoSuchMethodError #41

joshdanhall opened this issue Feb 5, 2021 · 1 comment

Comments

@joshdanhall
Copy link

joshdanhall commented Feb 5, 2021

The following line of code results in NoSuchMethodError:-
com.deepoove.swagger.diff.compare.ParameterDiff

    private Property mapToProperty(Parameter rightPara) {
        Property prop = new StringProperty();
        prop.setAccess(rightPara.getAccess());
        prop.setAllowEmptyValue(rightPara.getAllowEmptyValue());
        prop.setDescription(rightPara.getDescription());
        prop.setName(rightPara.getName());
        prop.setReadOnly(rightPara.isReadOnly());
        prop.setRequired(rightPara.getRequired());
        return prop;
    }

The offending call is rightPara.getAllowEmptyValue() where rightPara is of type io.swagger.models.parameters.Parameter, imported from io.swagger:swagger-models. I have trawled the versions of that module and cannot find one that is compatible (i.e. has the method getAllowEmptyValue()). Help please!!
Other than this, I'm really loving this tool! :)

@janpacuski
Copy link

This project is using swagger-models 1.5.15, while most recent version of swagger-models from the swagger-core is 1.62.
It's probably a little late for a replay, but maybe someone will need this hint later.

XelaNimed referenced this issue in XelaNimed/swagger-diff Oct 14, 2021
…ommons-commons-lang3-3.12.0

Bump commons-lang3 from 3.2.1 to 3.12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants