Skip to content

Adding a title in items, for array of ex Strings or Integers #210

Closed Answered by CarstenWickner
CathKilroy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CathKilroy,

This is certainly possible. The question is mainly: where is that title supposed to be looked up from?

I've created a working example utilising the Swagger 2 annotations:

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.victools.jsonschema.generator.Option;
import com.github.victools.jsonschema.generator.OptionPreset;
import com.github.victools.jsonschema.generator.SchemaGenerator;
import com.github.victools.jsonschema.generator.SchemaGeneratorConfig;
import com.github.victools.jsonschema.generator.SchemaGeneratorConfigBuilder;
import com.github.victools.jsonschema.generator.SchemaVersion;
import com.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CarstenWickner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants