-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of ogen are you using?
$ go list -m github.com/ogen-go/ogengithub.com/ogen-go/ogen v1.16.0
Can this issue be reproduced with the latest version?
Yes
What did you do?
This schema produces broken generated code
openapi: 3.0.0
info:
title: AddressSetMacsDto
version: 0.0.0
paths:
/address-set-macs:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AddressSetMacsDto'
responses:
200:
description: OK
components:
schemas:
AddressSetMacsDto:
type: object
properties:
addresses:
type: array
items:
type: string
format: mac
minItems: 1
uniqueItems: true
required:
- addressesWhat did you expect to see?
Working go build
What did you see instead?
$ go build './...'
# playground/go/api
api/oas_validators_gen.go:28:33: net.HardwareAddr does not satisfy comparableMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working