Changed to USDA_FDC

This commit is contained in:
cdricms
2023-12-30 17:57:20 +01:00
parent d4b51ee92e
commit 70e0e7c417
34 changed files with 9 additions and 9 deletions

View File

@@ -4,20 +4,20 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "USDA", name: "USDA_FDC",
products: [ products: [
// Products define the executables and libraries a package produces, making them visible to other packages. // Products define the executables and libraries a package produces, making them visible to other packages.
.library( .library(
name: "USDA", name: "USDA_FDC",
targets: ["USDA"]), targets: ["USDA_FDC"]),
], ],
targets: [ targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite. // Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies. // Targets can depend on other targets in this package and products from dependencies.
.target( .target(
name: "USDA"), name: "USDA_FDC"),
.testTarget( .testTarget(
name: "USDATests", name: "USDA_FDCTests",
dependencies: ["USDA"]), dependencies: ["USDA_FDC"]),
] ]
) )

View File

@@ -1,6 +1,6 @@
// The Swift Programming Language // The Swift Programming Language
// https://docs.swift.org/swift-book // https://docs.swift.org/swift-book
final class USDAClient { final class USDA_FDC_Client {
} }

View File

@@ -17,8 +17,8 @@ public struct BrandedFoodItem: Codable {
public let brandedFoodCategory: String? public let brandedFoodCategory: String?
public let tradeChannel: [String]? public let tradeChannel: [String]?
public let gpcClassCode: Int? public let gpcClassCode: Int?
public let foodNutrients: [Any]? public let foodNutrients: [FoodNutrient]?
public let foodUpdateLog: [Any]? public let foodUpdateLog: [FoodUpdateLog]?
public let labelNutrients: LabelNutrients? public let labelNutrients: LabelNutrients?
public struct LabelNutrients: Codable { public struct LabelNutrients: Codable {