Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Create objectType

未关闭
#169 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
api

调研方向

首先查看链接的 Get objectType API 文档以及存储库中现有的 objectType REST 操作。根据 issue 中的示例定义创建操作及其请求 payload,然后验证是否可以为所述的本体填充工作流创建缺失的对象类型。

由索引模型根据 Issue 内容生成。

描述

I can get a new object type via the REST API... but I can't create one.

Which means if I have a collection of object types to create at the start of an engagement, I'm going to have to manually add them. Obviously via REST I wouldn't expect to have the full flexibility of the manual wizard, but I would expect to be able to CRUD the basics at least

I would expect the potential request payload to be similar to the Get objectType with the exception of the RID's of all the elements.

Expected Payload

{
  "apiName": "employee",
  "description": "A full-time or part-time employee of our firm",
  "displayName": "Employee",
  "status": "ACTIVE",
  "primaryKey": "employeeId",
  "properties": {
    "employeeId": {
      "dataType": {
        "type": "integer"
      },
    },
    "fullName": {
      "dataType": {
        "type": "string"
      },
    },
    "office": {
      "description": "The unique ID of the employee's primary assigned office",
      "dataType": {
        "type": "string"
      },
    },
    "startDate": {
      "description": "The date the employee was hired (most recently, if they were re-hired)",
      "dataType": {
        "type": "date"
      },
    }
  },
}

As an example use case, this would allow me to populate an Ontology with a 1:1 mapping of a pre-existing model: by listing the current ontology objects and then creating the missing ones.

主要语言
Python
星标
208
派生
49
平均合并
15 小时 8 分钟
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

palantir/foundry-platform-python 的其他 Issue

查看 palantir/foundry-platform-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。