# `GSFormatVersionValidateOrDefault`

*Function*

A supported source format, or [`GSFormatVersion.GSFormatVersionCurrent`](/Core/GlyphsCore/GSFormatVersion/GSFormatVersionCurrent) when the value is not supported.

## Declaration

```swift
func GSFormatVersionValidateOrDefault(_ value: GSFormatVersion) -> GSFormatVersion
```

```objc
static GSFormatVersion GSFormatVersionValidateOrDefault(GSFormatVersion value);
```

```python
GSFormatVersionValidateOrDefault(value: GSFormatVersion) -> GSFormatVersion
```

## See Also

### Validation

- [`GSFormatVersionValidate`](/Core/GlyphsCore/GSFormatVersionValidate) — Whether a value identifies a supported source format.

