Skip to content

Documenting typedefs in Web API docs #282

Answered by hamishwillee
Elchi3 asked this question in Content
Discussion options

You must be logged in to vote

My understanding is that the rule is that:

  • dictionaries and typedefs are not and should not documented as though they were "code entities". Full stop.
  • If the entity/concept is "concise" you would document in place where it is used - duplicating everywhere.
  • If the entity/concept is significant and each instance will always be the same then you might document in one place and then link everywhere to that same place. Think the CSP origin docs.
  • If the concept is signficant but can differ in each place, you still should document in each place. I say "should" because maintenance has to be a consideration. If you can do so "safely" you might have common docs in one place and "deltas" with a lin…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@wbamberg
Comment options

@hamishwillee
Comment options

@Elchi3
Comment options

Elchi3 Nov 15, 2022
Maintainer Author

@hamishwillee
Comment options

Answer selected by Rumyra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants