Skip to content

Commit

Permalink
#114 Savepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Jan 22, 2024
1 parent a2460de commit 29401dc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 4 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ analyze:
pretty-print:
@./bin/pretty_print.py

# -----------------------------------------------------------------------------
# Generate code
# -----------------------------------------------------------------------------

.PHONY: generate-code
generate-code: generate-go


.PHONY: generate-go
generate-go:
jtd-codegen \
--go-out ./senzingresttypedef \
--go-package senzingresttypedef \
--root-name SenzingRestApiTypedef \
rest-api-service-RFC8927.json

# -----------------------------------------------------------------------------
# Dependency management
# -----------------------------------------------------------------------------
Expand Down
38 changes: 34 additions & 4 deletions rest-api-service-RFC8927.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"featureDetails": {
"elements": {
"ref": "featureDetail"
"ref": "FeatureDetail"
}
}
}
Expand All @@ -50,6 +50,29 @@
}
},
"Features": {},
"FeatureScores": {},
"FeatureScoreDetails": {
"properties": {
"Score": {
"metadata": {
"goType": "int64"
},
"type": "int32"
},
"FeatureType": {
"type": "string"
},
"InboundFeature": {
"type": "string"
},
"CandidateFeature": {
"type": "string"
},
"NameScoringDetails": {
"ref": "NameScoringDetails"
}
}
},
"IdentifierData": {
"elements": {
"type": "string"
Expand Down Expand Up @@ -116,6 +139,13 @@
"type": "string"
}
},
"NameScoringDetails": {
"properties": {
"HttpSFullNameScore": {
"type": "int32"
}
}
},
"OtherData": {
"elements": {
"type": "string"
Expand Down Expand Up @@ -147,7 +177,7 @@
"type": "string"
},
"MatchLevel": {
"type": "in32"
"type": "int32"
},
"NameData": {
"ref": "NameData"
Expand Down Expand Up @@ -214,7 +244,7 @@
"ref": "AddressData"
},
"BestNameScore": {
"type": "in32"
"type": "int32"
},
"CharacteristicData": {
"ref": "CharacteristicData"
Expand All @@ -241,7 +271,7 @@
"type": "string"
},
"MatchLevel": {
"type": "in32"
"type": "int32"
},
"NameData": {
"ref": "NameData"
Expand Down

0 comments on commit 29401dc

Please sign in to comment.