API Gateway with swagger documentation export error

0

I added one piece of documentation on our api gateway using the web UI and when I try to export it as swagger, I get the following error:

Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT) at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: io.swagger.models.ModelImpl["default"])

Here is what the documentation part looks like: Enter image description here

What am I doing wrong?

  • This a default example when you click on the documentation button.

2回答
0

The documentation is expecting a 'String' type value and you're offering an 'Object' type value.

Change either like this:

"{'Documentation': 'Global Authentication'}"

or

"Documentation: Global Authentication"
AWS
vtjean
回答済み 1年前
0

The way I resolved the error was to delete the stage and then add it back, then the error went away.

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ