Description
Reject duplicate requiredMembers and test exact membership of memberName in that supplied list.
A JSON Schema keyword expresses one constraint on an instance. Required-list membership, property naming, numeric bounds, and enum contents are distinct checks within a larger schema.
Reject duplicate requiredMembers and test exact membership of memberName in that supplied list.
When to use this tool
Use JSON: JSON Schema Required Member Flag when you need one explicit schema-keyword or membership component.
How to use the tool and how it works
- Enter requiredMembers, memberName. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Reject duplicate requiredMembers and test exact membership of memberName in that supplied list.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| requiredMembers | Required Members | Required. Array of text. Implementation limit: 128 items. |
| memberName | Member Name | Required. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Result | Required. Object. |
| result.required | Required | Calculated result member: boolean. |
{
"input": {
"requiredMembers": [
"a",
"b"
],
"memberName": "a"
},
"output": {
"result": {
"required": true
}
}
} Limitations and assumptions
- This reports whether a name is listed as required, not whether an actual object contains it or satisfies a schema.
- Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Validate the complete schema and instance using the intended dialect before treating a local check as conformance.
References
Similar or alternative tools
- JSON Schema Required Single Key Check
Parse objectJson as a plain JSON object and test Object.hasOwn for the literal key.
- JSON Schema Property Name Empty Flag
Report whether name is empty and whether requiredNames contains it.