11

Is there an adjective that describes something that must be omitted/absent in a particular context?

For example, consider this software documentation that explains the relationship between two different variables:

  • When contentType = 'application/json', schemaVersion is required (must be present).
  • When contentType = 'x-vendor/manifest', schemaVersion is optional (may be present or absent).
  • When contentType = 'image/jpeg', schemaVersion is _______ (must be absent).

What word can be used to fill in the blank?

32

Prohibited.
See the W3school definition of the use attribute in XML which is for exactly this characteristic :

use

[...] Specifies how the attribute is used.
Can be one of the following values:

optional - the attribute is optional (this is default).
prohibited - the attribute cannot be used.
required - the attribute is required.

  • 7
    Ironically, w3school is widely considered to be pretty bad at teaching the languages it is supposed to teach (HTML, CSS, ECMAScript, SQL, PHP, XML, XSLT, …), but hey, at least it teaches English :-D – Jörg W Mittag Jan 13 '17 at 22:53
  • 2
    Ugh, technical people hate that you used w3schools. At least find something at the W3C! – ErikE Jan 14 '17 at 0:42
  • 2
    @JörgWMittag: I never understood why it was so hated, I remember reading that people think it has gotten better. – Mehrdad Jan 14 '17 at 10:38
  • 2
    @KhalidHussain did that site use to have concrete information about W3Schools? I don't see any now, but I see many people linking to it in conversations about W3Schools. – Dan Getz Jan 14 '17 at 19:24
  • 1
    @DanGetz, you may use The Way Back Machine to check out the website at different times, here is an example: web.archive.org/web/20120620135916/http://w3fools.com – Khalid Hussain Jan 17 '17 at 7:00
12

Forbidden

forbidden, adj

1 : not permitted or allowed

source: Merriam-Webster online

4

If you don’t insist on a single word, not allowed works. There’s also disallowed.

Note also some useful in-between words:

  • schemaVersion is recommended (optional, but generally encouraged).
  • schemaVersion is deprecated (optional, but generally discouraged).
3

I propose the words "excluded" or "disjunct".

I believe you are referring to a case of the exclusive OR -- familiar to the computer science field as an XOR. Philosophical mutual exclusion or mutual disjunction.

I hope that this helps.

1

They're good answers here already.

I thought to add, "precluded," in case it rings true too.

In the context, the meaning would be that it's prevented from possibility, which I think is the sense that's needed.

See this listing, from Oxford dictionaries online, especially the example sentences there. For instance, "Many reports use research designs with low internal validity, precluding a complete functional analysis."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.