#584 - Ignore type field in content-type validation

This commit is contained in:
Elio Struyf
2023-05-10 14:35:43 +02:00
parent e18a5c082f
commit 25ddadd5d6
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -14,6 +14,8 @@
### ⚡️ Optimizations
- [#584](https://github.com/estruyf/vscode-front-matter/issues/584): - Ignore type field in content-type validation
### 🐞 Fixes
- [#564](https://github.com/estruyf/vscode-front-matter/issues/564): Fix to only pass strings to the taxonomy dashboard
@@ -12,7 +12,7 @@ export interface IContentTypeValidatorProps {
metadata: IMetadata;
}
const fieldsToIgnore = [`filePath`, `articleDetails`, `slug`, `keywords`];
const fieldsToIgnore = [`filePath`, `articleDetails`, `slug`, `keywords`, `type`];
export const ContentTypeValidator: React.FunctionComponent<IContentTypeValidatorProps> = ({
fields,
+1 -1
View File
@@ -291,7 +291,7 @@ button {
.metadata_field__label {
display: flex;
align-items: center;
justify-content: space-between;
/* justify-content: space-between; */
margin-bottom: 0.5rem;
div {