# Function: checkPublishableSchema()

```ts
function checkPublishableSchema(schema, path?): string | null;
```

Defined in: [packages/core/src/schema/collection-def.ts:224](https://github.com/leifriksheim/minca/blob/main/core/src/schema/collection-def.ts#L224)

Why a schema may not be published, or null when it may.

## Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `schema` | `unknown` | `undefined` |
| `path?` | `string` | `'schema'` |

## Returns

`string` \| `null`
