alibaba / alibaba/fastjson2

[FEATURE] 希望通过json schema可以获取出json的默认对象,或者补全json对象

Open
#3,565 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 请描述您的需求或者改进建议
*希望通过json schema可以获取出json的默认对象,或者补全json对象*

### 请描述你建议的实现方案
*json schema是支持默认值处理的,因此通过这些字段定义+默认值是可以构建出完整的json对象*

### 描述您考虑过的替代方案
*目前考虑采用其他的库来完成这种处理*

#### 附加信息
*如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。*

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by checking whether fastjson2 already has JSON Schema handling and how a proposed API could generate or complete an object from default values; done requires a defined behavior and tests for schemas containing defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, json
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.