diff --git a/examples/getstarted/api/temp/content-types/temp/schema.json b/examples/getstarted/api/temp/content-types/temp/schema.json
index 0e1e91b163..16d64a891f 100644
--- a/examples/getstarted/api/temp/content-types/temp/schema.json
+++ b/examples/getstarted/api/temp/content-types/temp/schema.json
@@ -9,7 +9,7 @@
"description": ""
},
"options": {
- "draftAndPublish": true
+ "draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
@@ -85,6 +85,25 @@
},
"number_float": {
"type": "float"
+ },
+ "enum_req_def": {
+ "type": "enumeration",
+ "enum": [
+ "un",
+ "deux",
+ "trois"
+ ],
+ "required": true,
+ "default": "un"
+ },
+ "enum_req": {
+ "type": "enumeration",
+ "enum": [
+ "un",
+ "deux",
+ "trois"
+ ],
+ "required": true
}
}
}
diff --git a/packages/core/admin/admin/src/content-manager/components/Inputs/GenericInput.js b/packages/core/admin/admin/src/content-manager/components/Inputs/GenericInput.js
index f41a7e1683..35218fe277 100644
--- a/packages/core/admin/admin/src/content-manager/components/Inputs/GenericInput.js
+++ b/packages/core/admin/admin/src/content-manager/components/Inputs/GenericInput.js
@@ -7,6 +7,7 @@
import React, { useState } from 'react';
import { useIntl } from 'react-intl';
import { NumberInput } from '@strapi/parts/NumberInput';
+import { Select, Option } from '@strapi/parts/Select';
import { Textarea } from '@strapi/parts/Textarea';
import { TextInput } from '@strapi/parts/TextInput';
import { ToggleInput } from '@strapi/parts/ToggleInput';
@@ -24,6 +25,7 @@ const GenericInput = ({
error,
name,
onChange,
+ options,
placeholder,
step,
type,
@@ -176,6 +178,32 @@ const GenericInput = ({
/>
);
}
+ case 'select': {
+ return (
+
+ );
+ }
case 'textarea': {
return (