🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Structured Outputs: all 10 questions

Quiz: Structured Outputs · Question 6 of 10

What does "additionalProperties": false do in a JSON schema?

What does "additionalProperties": false do in a JSON schema?

  1. A.Makes every field optional
  2. B.Forbids fields that are not listed in the schema
  3. C.Allows extra text before the JSON
  4. D.Turns numbers into strings
Answer & explanation

Correct answer: Forbids fields that are not listed in the schema

The output then contains exactly the fields you defined.

Can you get the rest right without peeking?

Take the timed Quiz: Structured Outputs quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →