MCPcopy Create free account
hub / github.com/oapi-codegen/oapi-codegen / PropertiesEqual

Function PropertiesEqual

pkg/codegen/schema.go:322–324  ·  view source on GitHub ↗
(a, b Property)

Source from the content-addressed store, hash-verified

320}
321
322func PropertiesEqual(a, b Property) bool {
323 return a.JsonFieldName == b.JsonFieldName && a.Schema.TypeDecl() == b.Schema.TypeDecl() && a.Required == b.Required
324}
325
326func GenerateGoSchema(sref *openapi3.SchemaRef, path []string) (Schema, error) {
327 // Add a fallback value in case the sref is nil.

Callers 1

AddPropertyMethod · 0.85

Calls 1

TypeDeclMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…