瀏覽代碼

html-documents as exemple

Guénaël Muller 6 年之前
父節點
當前提交
78f26e91ca
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tracim/views/core_api/schemas.py

+ 3 - 3
tracim/views/core_api/schemas.py 查看文件

359
     )
359
     )
360
     label = marshmallow.fields.Str(example='Intervention Report 12')
360
     label = marshmallow.fields.Str(example='Intervention Report 12')
361
     content_type = marshmallow.fields.Str(
361
     content_type = marshmallow.fields.Str(
362
-        example='html-content',
362
+        example='html-documents',
363
         validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
363
         validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
364
     )
364
     )
365
     sub_content_types = marshmallow.fields.List(
365
     sub_content_types = marshmallow.fields.List(
413
 
413
 
414
 class HtmlDocumentContentSchema(ContentSchema):
414
 class HtmlDocumentContentSchema(ContentSchema):
415
     content_type = marshmallow.fields.Str(
415
     content_type = marshmallow.fields.Str(
416
-        example='html-content',
416
+        example='html-documents',
417
         validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
417
         validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
418
     )
418
     )
419
     raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
419
     raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
443
 
443
 
444
 class HtmlDocumentRevisionSchema(RevisionSchema):
444
 class HtmlDocumentRevisionSchema(RevisionSchema):
445
     content_type = marshmallow.fields.Str(
445
     content_type = marshmallow.fields.Str(
446
-        example='html-content',
446
+        example='html-documents',
447
         validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
447
         validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
448
     )
448
     )
449
     raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
449
     raw_content = marshmallow.fields.String('<p>Html page Content!</p>')