FluentCMS icon indicating copy to clipboard operation
FluentCMS copied to clipboard

Content-Type API requirments

Open babakhani opened this issue 1 year ago • 2 comments

  • Text

    • Name
    • Type
      • Short
      • Long
    • Default value
    • RegExp pattern
    • Required
    • Unique
    • Maximum length
    • Minimum length
    • Private
    • Localization
  • Email

    • Name
    • Default value
    • Required
    • Unique
    • Maximum length
    • Minimum length
    • Private
    • Localization
  • Rich Text/Markdown/Password

    • Name
    • Default value
    • Required
    • Maximum length
    • Minimum length
    • Private
    • Localization
  • Number

    • Name
    • Number format
      • Integer
      • Big Integer
      • Decimal
      • Float
    • Default value
    • Required
    • Unique
    • Maximum value
    • Minimum value
    • Private
    • Localization
  • Enumeration

    • Name
    • Values (Array of string)
    • Default value
    • Name override for GraphQL (String)
    • Required
    • Private
    • Localization
  • Date

    • Name
    • Type
      • Date
      • DateTime
      • Time
    • Default value
    • Required
    • Unique
    • Private
  • Media

    • Name
    • Type
      • Multiple
      • Single
    • Select allowed types of media (Array of string)
    • Required
    • Private
    • Localization
  • Boolean

    • Name
    • Default value
    • Required
    • Private
    • Localization

babakhani avatar Mar 30 '24 08:03 babakhani

I'm not sure about Maximum length & Minimum length for Email field doesn't it add unnecessary confusion?

Localization for email doesn't really make sense too! i get it that we can have multiple emails for multiple locales but do we really need it?

wouldn't Dictionary of String/int or String/String be much better for enumeration list values?

looks like we have duplicate text field definition!

I'm not sure about Maximum length & Minimum length for Markdown/RichText too as they can be really long especially if they contain complicated svg or base64 data.

ParsaGachkar avatar Apr 06 '24 11:04 ParsaGachkar

Maximum/Minimum length and Localization for Email/Markdown/RichText are optional and they are presented by Strapi.

abdolian avatar Apr 06 '24 11:04 abdolian