swagger-api / swagger-api/swagger-core

Example value is null

Open
#4,456 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backlog
Dominant language
Java
Stars
7.5k
Forks
2.3k
Avg merge
18h 1m
Merged PRs (30d)
10

Description

I'm using the newest version of swagger-jersey2-jaxrs

// https://mvnrepository.com/artifact/io.swagger/swagger-jersey2-jaxrs
implementation group: 'io.swagger', name: 'swagger-jersey2-jaxrs', version: '1.6.11'

and see that the Example value is null

image

While on an older version 1.6.2, the example value is auto filled by default of data type
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported behavior with swagger-jersey2-jaxrs 1.6.11, then compare it with 1.6.2 and trace where the generated example value is determined. Done means the default example is populated for the same API and the regression is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.