Skip to content

Conversation

wujimin
Copy link
Contributor

@wujimin wujimin commented Aug 17, 2017

…s in schema

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 85.43% when pulling 993aefa on wujimin:check-object-when-generate-swagger into bd85c12 on ServiceComb:master.

return;
}

String msg = "must be a clear type.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about change the message to "Must be a concrete type."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


if (Modifier.isAbstract(type.getRawClass().getModifiers())) {
throw new Error(type.getTypeName() + " is abstract.");
throw new ServiceCombException(type.getTypeName() + " is abstract. " + msg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change it to "is abstract class"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wujimin wujimin force-pushed the check-object-when-generate-swagger branch from 993aefa to f493ac0 Compare August 17, 2017 07:31
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling f493ac0 on wujimin:check-object-when-generate-swagger into ** on ServiceComb:master**.

@WillemJiang WillemJiang merged commit 3151d53 into apache:master Aug 17, 2017
@WillemJiang WillemJiang added this to the 0.2.0 milestone Aug 19, 2017
@wujimin wujimin deleted the check-object-when-generate-swagger branch August 23, 2017 08:55
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

Successfully merging this pull request may close these issues.

3 participants