mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
de60c69aa0
commit
537e971372
1 changed files with 2 additions and 5 deletions
|
@ -452,10 +452,7 @@ async function writeContentFiles({
|
|||
dataTypesStr += `};\n`;
|
||||
}
|
||||
|
||||
if (
|
||||
settings.config.experimental.contentCollectionJsonSchema &&
|
||||
collectionConfig?.schema
|
||||
) {
|
||||
if (settings.config.experimental.contentCollectionJsonSchema && collectionConfig?.schema) {
|
||||
let zodSchemaForJson =
|
||||
typeof collectionConfig.schema === 'function'
|
||||
? collectionConfig.schema({ image: () => z.string() })
|
||||
|
@ -481,7 +478,7 @@ async function writeContentFiles({
|
|||
} catch (err) {
|
||||
logger.warn(
|
||||
'content',
|
||||
`An error was encountered while creating the JSON schema for the ${collectionKey} collection. Proceeding without it. Error: ${err}`
|
||||
`An error was encountered while creating the JSON schema for the ${collectionKey} collection. Proceeding without it. Error: ${err}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue