Skip to content

Schema naming convention

Ilia Naryzhny edited this page Apr 1, 2015 · 2 revisions
  1. Name should reflect purpose of a class or property. Use whole words — avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).
  2. Class names should be nouns in UpperCamelCase, with the first letter of every word capitalized.
  3. It's recommended to use some prefix for all classes for the specific data model
  4. Property names should be in lowerCamelCase, with the first letter of every word capitalized.
Type Wrong Good Explanation
Class My Class MyClass Spaces are not allowed
Class myClass MyClass Should be UpperCamelCase
Class Observe Observation Class name should noun
Property LongName longName Should be lowerCamelCase